diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2c22493..da3c722 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,6 +38,7 @@ set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_SOURCE_DIR}/_install) set(INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include) set(INCLUDE_FILES ${INCLUDE_DIR}/nem_ull.h + ${INCLUDE_DIR}/dfs.h ${INCLUDE_DIR}/structs.h ${INCLUDE_DIR}/common.h ) @@ -45,6 +46,7 @@ set(INCLUDE_FILES set(SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src) set(SRC_FILES ${SRC_DIR}/nem_ull.c + ${SRC_DIR}/dfs.c ${SRC_DIR}/common.c ) @@ -52,10 +54,15 @@ set(MAIN_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/main) include_directories (${INCLUDE_DIR}) -add_library(nem_ull_lib STATIC ${SRC_FILES}) +add_library(uknapsack STATIC ${SRC_FILES}) + add_executable(nem_ull ${MAIN_SRC_DIR}/nem_ull.c) -target_link_libraries(nem_ull nem_ull_lib) +add_executable(dfs ${MAIN_SRC_DIR}/dfs.c) + +target_link_libraries(nem_ull uknapsack) +target_link_libraries(dfs uknapsack) install(TARGETS nem_ull DESTINATION bin) -install(TARGETS nem_ull_lib DESTINATION lib) +install(TARGETS dfs DESTINATION bin) +install(TARGETS uknapsack DESTINATION lib) install(FILES ${INCLUDE_FILES} DESTINATION include) |