diff options
Diffstat (limited to 'emu/CMakeLists.txt')
-rw-r--r-- | emu/CMakeLists.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/emu/CMakeLists.txt b/emu/CMakeLists.txt index 535802a..6e13d00 100644 --- a/emu/CMakeLists.txt +++ b/emu/CMakeLists.txt @@ -27,7 +27,6 @@ set(SRC memory.c 7seg.c emul.c - emu.c ) ADD_GENGETOPT_FILES(SRC options.ggo) @@ -40,8 +39,11 @@ PKG_SEARCH_MODULE(CHECK REQUIRED check) include_directories(${SDL2_INCLUDE_DIRS} ${SDL2_INCLUDE_DIRS}) -add_executable(emu ${SRC}) -target_link_libraries(emu ${SDL2_LIBRARIES} ${SDL2_GFX_LIBRARIES}) +add_library(emulib STATIC ${SRC}) + +add_executable(emu emu.c) +target_link_libraries(emu ${SDL2_LIBRARIES} ${SDL2_GFX_LIBRARIES} emulib) enable_testing() add_subdirectory(tests) +add_custom_target(report DEPENDS tests/test.html) |