-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
executable file
·44 lines (28 loc) · 1.16 KB
/
CMakeLists.txt
File metadata and controls
executable file
·44 lines (28 loc) · 1.16 KB
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
cmake_minimum_required (VERSION 2.8.4)
project (cpps)
ADD_DEFINITIONS(
-std=c++11 # Or -std=c++0x
# Other flags
)
# set (CPPS_SRCS Action.cpp H2GchAction.cpp Obj2ExeAction.cpp Cpp2ObjAction.cpp helpers.cpp PhonyEntity.cpp DependencyGraphEntity.cpp Loggers.cpp ShebangMagic.cpp FileEntity.cpp main.cpp UpdateDependencyGraphAction.cpp GchMagic.cpp MiniLogger.cpp VulnerableFileEntity.cpp samples.cpp)
file(GLOB CPPS_SRCS "src/*.cpp")
add_executable (cpps ${CPPS_SRCS})
find_package(Boost REQUIRED COMPONENTS system filesystem program_options serialization timer chrono)
target_link_libraries(cpps ${Boost_LIBRARIES})
include (CheckIncludeFileCXX)
CHECK_INCLUDE_FILE_CXX(regex HAVE_REGEX)
if (NOT HAVE_REGEX)
find_package(Boost REQUIRED COMPONENTS regex)
endif ()
target_link_libraries(cpps ${Boost_LIBRARIES})
configure_file (
${PROJECT_SOURCE_DIR}/src/config.h.in
${PROJECT_BINARY_DIR}/src/config.h
)
include_directories (${PROJECT_BINARY_DIR}/src ${PROJECT_SOURCE_DIR}/src)
install (TARGETS cpps DESTINATION bin)
enable_testing()
add_test (cppsruns cpps)
add_test (cppsusage cpps)
set_tests_properties (cppsusage
PROPERTIES PASS_REGULAR_EXPRESSION "Usage")