|
1 | 1 | cmake_minimum_required(VERSION "3.12")
|
2 | 2 |
|
3 |
| -project("spackexample" VERSION 0.3.0) |
| 3 | +project("spackexample" VERSION 0.1.0) |
4 | 4 |
|
5 |
| -find_package(Boost |
6 |
| - 1.65.1 |
7 |
| - REQUIRED |
8 |
| - filesystem |
9 |
| - ) |
| 5 | +# find_package(Boost |
| 6 | +# 1.65.1 |
| 7 | +# REQUIRED |
| 8 | +# filesystem |
| 9 | +# ) |
10 | 10 |
|
11 |
| -find_package(yaml-cpp |
12 |
| - 0.7.0 |
13 |
| - REQUIRED |
14 |
| - ) |
| 11 | +# find_package(yaml-cpp |
| 12 | +# 0.7.0 |
| 13 | +# REQUIRED |
| 14 | +# ) |
15 | 15 |
|
16 | 16 | add_library(spackexamplelib filesystem/filesystem.cpp flatset/flatset.cpp yamlParser/yamlParser.cpp)
|
17 | 17 |
|
18 |
| -set_target_properties(spackexamplelib |
19 |
| - PROPERTIES |
20 |
| - PUBLIC_HEADER filesystem/filesystem.hpp |
21 |
| - PUBLIC_HEADER flatset/flatset.hpp |
22 |
| - PUBLIC_HEADER yamlParser/yamlParser.hpp |
23 |
| - ) |
| 18 | +# set_target_properties(spackexamplelib |
| 19 | +# PROPERTIES |
| 20 | +# PUBLIC_HEADER filesystem/filesystem.hpp |
| 21 | +# PUBLIC_HEADER flatset/flatset.hpp |
| 22 | +# PUBLIC_HEADER yamlParser/yamlParser.hpp |
| 23 | +# ) |
24 | 24 |
|
25 |
| -include_directories(${YAML_CPP_INCLUDE_DIR}) |
| 25 | +# include_directories(${YAML_CPP_INCLUDE_DIR}) |
26 | 26 |
|
27 | 27 | add_executable(spackexample main.cpp)
|
28 |
| -target_link_libraries(spackexample spackexamplelib) |
29 |
| -target_link_libraries(spackexamplelib Boost::filesystem yaml-cpp) |
30 |
| - |
31 |
| -target_include_directories(spackexamplelib |
32 |
| - PRIVATE |
33 |
| - ${CMAKE_CURRENT_SOURCE_DIR}/spackexamplelib |
34 |
| - PUBLIC |
35 |
| - $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/spackexamplelib> |
36 |
| - $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/spackexamplelib> |
37 |
| - ) |
| 28 | +# target_link_libraries(spackexample spackexamplelib) |
| 29 | +# target_link_libraries(spackexamplelib Boost::filesystem yaml-cpp) |
| 30 | + |
| 31 | +# target_include_directories(spackexamplelib |
| 32 | +# PRIVATE |
| 33 | +# ${CMAKE_CURRENT_SOURCE_DIR}/spackexamplelib |
| 34 | +# PUBLIC |
| 35 | +# $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/spackexamplelib> |
| 36 | +# $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/spackexamplelib> |
| 37 | +# ) |
38 | 38 |
|
39 | 39 | # Create install targets
|
40 | 40 | include(GNUInstallDirs)
|
|
0 commit comments