Skip to content
Snippets Groups Projects
Commit f44eecb8 authored by adrien-matta's avatar adrien-matta
Browse files

* NPS now know what detector to build

parent 6d9c0352
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,8 @@ set(CMAKE_BUILD_TYPE Release) ...@@ -15,7 +15,8 @@ set(CMAKE_BUILD_TYPE Release)
set(DETLIST ${ETLIST}) set(DETLIST ${ETLIST})
if("${DETLIST}" MATCHES "") string(COMPARE EQUAL "${DETLIST}" "" rdet)
if(rdet)
message("Building all detectors") message("Building all detectors")
else() else()
message("Building the following detectors ${DETLIST}") message("Building the following detectors ${DETLIST}")
......
...@@ -6,9 +6,10 @@ ...@@ -6,9 +6,10 @@
# Compute paths # Compute paths
get_filename_component(NPLib_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) get_filename_component(NPLib_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
set(NPLib_USE_FILE "@CMAKE_BINARY_DIR@/NPLibConfig.cmake")
set(NPLib_INCLUDE_DIRS "@CMAKE_INCLUDE_OUTPUT_DIRECTORY@") set(NPLib_INCLUDE_DIRS "@CMAKE_INCLUDE_OUTPUT_DIRECTORY@")
set(NPLib_DETECTOR_LIST "@DETLIST@")
include_directories("${NPLib_INCLUDE_DIRS}") include_directories("${NPLib_INCLUDE_DIRS}")
set(NPLib_USE_FILE "@CMAKE_BINARY_DIR@/NPLibConfig.cmake")
set(NPLib_LIBRARIES "-L@CMAKE_BINARY_DIR@/lib -lNPCore -lNPPhysics -lNPInteractionCoordinates -lNPInitialConditions") set(NPLib_LIBRARIES "-L@CMAKE_BINARY_DIR@/lib -lNPCore -lNPPhysics -lNPInteractionCoordinates -lNPInitialConditions")
......
...@@ -21,7 +21,8 @@ configure_file(Core/NPSimulationVersion.hh.in Core/NPSimulationVersion.hh @ONLY) ...@@ -21,7 +21,8 @@ configure_file(Core/NPSimulationVersion.hh.in Core/NPSimulationVersion.hh @ONLY)
set(DETLIST ${NPLib_DETECTOR_LIST}) set(DETLIST ${NPLib_DETECTOR_LIST})
if("${DETLIST}" MATCHES "") string(COMPARE EQUAL "${DETLIST}" "" rdet)
if(rdet)
message("Building all detectors") message("Building all detectors")
else() else()
message("Building the following detectors ${DETLIST}") message("Building the following detectors ${DETLIST}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment