-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
37 lines (30 loc) · 929 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
cmake_minimum_required(VERSION 3.20.0)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
project(PEA1 VERSION 0.1.0)
add_library(src STATIC
src/BruteForce.cpp
src/BruteForceStl.cpp
src/DynamicPrograming.cpp
src/Graph.cpp
src/BranchAndBound.cpp
src/Time.cpp
)
# add_library(files STATIC
# test_files/tsp_6_1.txt
# test_files/tsp_6_2.txt
# test_files/tsp_10.txt
# test_files/tsp_12.txt
# test_files/tsp_13.txt
# test_files/tsp_15.txt
# test_files/tsp_17.txt)
target_include_directories(src PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src)
# target_include_directories(files PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/test_files)
include(CTest)
enable_testing()
add_executable(PEA1 main.cpp)
target_link_libraries(PEA1 PUBLIC src)
# target_link_libraries(PEA1 PUBLIC files)
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)