-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
26 lines (19 loc) · 922 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
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
project(DecayChainDrawer)
find_package(ILCUTIL REQUIRED COMPONENTS ILCSOFT_CMAKE_MODULES)
include(ilcsoft_default_settings)
# Remove this ugly warning
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-effc++ -g")
message(STATUS "C++ flags are set to: " ${CMAKE_CXX_FLAGS})
include_directories(${PROJECT_SOURCE_DIR}/include)
add_library(${PROJECT_NAME} SHARED ${PROJECT_SOURCE_DIR}/src/DecayChainDrawer.cpp ${PROJECT_SOURCE_DIR}/src/ColorMap.cpp)
### DEPENDENCIES ###
find_package(Marlin REQUIRED)
find_package(MarlinUtil REQUIRED)
FOREACH(pkg Marlin MarlinUtil)
include_directories(${${pkg}_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME} ${${pkg}_LIBRARIES})
ENDFOREACH()
FIND_PACKAGE(DD4hep REQUIRED COMPONENTS DDRec)
target_link_libraries(${PROJECT_NAME} ${DD4hep_COMPONENT_LIBRARIES})
install(TARGETS ${PROJECT_NAME} DESTINATION ${PROJECT_SOURCE_DIR}/lib)