-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
45 lines (36 loc) · 946 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
38
39
40
41
42
43
44
45
# Minimum required version of CMake
cmake_minimum_required(VERSION 3.18)
# Set CMake project name
project(RTCMP)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake")
find_package(Threads REQUIRED)
find_package(BRLCAD REQUIRED)
find_library(M_LIBRARY m)
if(NOT MSVC)
add_definitions(-g)
endif(NOT MSVC)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${BRLCAD_INCLUDE_DIRS}
)
set(rtcmp_SRCS
dry/dry.cpp
comp/jsoncmp.cpp
comp/shotset.cpp
perfcomp.cpp
rt/rt_diff.cpp
rt/rt_perf.cpp
rtcmp.cpp
tie/tie_diff.cpp
tie/tie_perf.cpp
)
add_executable(rtcmp ${rtcmp_SRCS})
set_property(TARGET rtcmp PROPERTY CXX_STANDARD 17)
target_compile_definitions(rtcmp PRIVATE RT_DLL_IMPORTS BU_DLL_IMPORTS)
target_link_libraries(rtcmp PRIVATE Threads::Threads ${BRLCAD_LIBRARIES} $<$<BOOL:${M_LIBRARY}>:${M_LIBRARY}>)
# Local Variables:
# tab-width: 8
# mode: cmake
# indent-tabs-mode: t
# End:
# ex: shiftwidth=2 tabstop=8