-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
78 lines (66 loc) · 1.58 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
cmake_minimum_required(VERSION 3.20)
project(hyperxsearch)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
include(FindPkgConfig)
# tclap
pkg_check_modules(tclap REQUIRED IMPORTED_TARGET tclap)
get_target_property(
TCLAP_INC
PkgConfig::tclap
INTERFACE_INCLUDE_DIRECTORIES
)
# libprim
pkg_check_modules(libprim REQUIRED IMPORTED_TARGET libprim)
get_target_property(
LIBPRIM_INC
PkgConfig::libprim
INTERFACE_INCLUDE_DIRECTORIES
)
# libstrop
pkg_check_modules(libstrop REQUIRED IMPORTED_TARGET libstrop)
get_target_property(
LIBSTROP_INC
PkgConfig::libstrop
INTERFACE_INCLUDE_DIRECTORIES
)
# libgrid
pkg_check_modules(libgrid REQUIRED IMPORTED_TARGET libgrid)
get_target_property(
LIBGRID_INC
PkgConfig::libgrid
INTERFACE_INCLUDE_DIRECTORIES
)
add_executable(
hyperxsearch
${PROJECT_SOURCE_DIR}/src/main.cc
${PROJECT_SOURCE_DIR}/src/search/RouterChannelCount.cc
${PROJECT_SOURCE_DIR}/src/search/CalculatorFactory.cc
${PROJECT_SOURCE_DIR}/src/search/Calculator.cc
${PROJECT_SOURCE_DIR}/src/search/Engine.cc
${PROJECT_SOURCE_DIR}/src/search/Calculator.h
${PROJECT_SOURCE_DIR}/src/search/Engine.h
${PROJECT_SOURCE_DIR}/src/search/RouterChannelCount.h
${PROJECT_SOURCE_DIR}/src/search/CalculatorFactory.h
)
target_include_directories(
hyperxsearch
PUBLIC
${PROJECT_SOURCE_DIR}/src
${TCLAP_INC}
${LIBPRIM_INC}
${LIBSTROP_INC}
${LIBGRID_INC}
)
target_link_libraries(
hyperxsearch
PkgConfig::tclap
PkgConfig::libprim
PkgConfig::libstrop
PkgConfig::libgrid
)
include(GNUInstallDirs)
install(
TARGETS
hyperxsearch
)