diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5144b83..dca0a4d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,17 +57,10 @@ set(MAIN_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/main) include_directories (${INCLUDE_DIR}) add_library(uknapsack STATIC ${SRC_FILES}) +add_executable(uknapsack_bin ${MAIN_SRC_DIR}/uknapsack) -add_executable(nem_ull ${MAIN_SRC_DIR}/nem_ull.c) -add_executable(dfs ${MAIN_SRC_DIR}/dfs.c) -add_executable(random_heuristic ${MAIN_SRC_DIR}/random_heuristic.c) +target_link_libraries(uknapsack_bin uknapsack) -target_link_libraries(nem_ull uknapsack) -target_link_libraries(dfs uknapsack) -target_link_libraries(random_heuristic uknapsack) - -install(TARGETS nem_ull DESTINATION bin) -install(TARGETS dfs DESTINATION bin) -install(TARGETS random_heuristic DESTINATION bin) +install(TARGETS uknapsack_bin DESTINATION bin) install(TARGETS uknapsack DESTINATION lib) install(FILES ${INCLUDE_FILES} DESTINATION include) |