diff --git a/GeoModelG4/CMakeLists.txt b/GeoModelG4/CMakeLists.txt index 0d1c6e7b0352eba193ac149382d3c69722dad397..128f647f3b4d3215e7777e83194b51e05844144a 100644 --- a/GeoModelG4/CMakeLists.txt +++ b/GeoModelG4/CMakeLists.txt @@ -18,6 +18,8 @@ if( (CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) OR GEOMODEL_BUILD_GEOMODELG4_ include( cmake_colors_defs ) # Warn the users about what they are doing message(STATUS "${BoldGreen}Building ${PROJECT_NAME} individually, as a top-level project.${ColourReset}") + # Set a default build type + include( BuildType ) # Set default build and C++ options include( configure_cpp_options ) set( CMAKE_FIND_FRAMEWORK "LAST" CACHE STRING @@ -31,6 +33,8 @@ if( (CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) OR GEOMODEL_BUILD_GEOMODELG4_ endif() # Set a flag to steer the of the subpackages set( ${PROJECT_NAME}_INDIVIDUAL_BUILD ON ) + # Print Build Info on screen + include( PrintBuildInfo ) else() # I am called from other projects with add_subdirectory(). message( STATUS "Building ${PROJECT_NAME} as part of the root GeoModel project.") diff --git a/GeoModelTools/CMakeLists.txt b/GeoModelTools/CMakeLists.txt index 3c29cb7ad5912aa19e24997da70da49269d0bd1c..738f05fcc77372e932a93965af045e831acd1f24 100644 --- a/GeoModelTools/CMakeLists.txt +++ b/GeoModelTools/CMakeLists.txt @@ -19,6 +19,8 @@ if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) include( cmake_colors_defs ) # Warn the users about what they are doing message(STATUS "${BoldGreen}Building ${PROJECT_NAME} individually, as a top-level project.${ColourReset}") + # Set a default build type + include( BuildType ) # Set default build and C++ options include( configure_cpp_options ) set( CMAKE_FIND_FRAMEWORK "LAST" CACHE STRING @@ -36,6 +38,8 @@ if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) find_package( GeoModelIO REQUIRED ${GeoModel_VERSION} ) # Set a flag to steer the build of the subpackages #set( VISUALIZATION_INDIVIDUAL_BUILD ON ) + # Print Build Info on screen + include( PrintBuildInfo ) else() # I am called from other project with add_subdirectory(). message( STATUS "Building ${PROJECT_NAME} as part of the root GeoModel project.") diff --git a/GeoModelVisualization/CMakeLists.txt b/GeoModelVisualization/CMakeLists.txt index 6ba88d17672db6eec6601833693492f8018e0839..054444a47a272f347c06333958252d30bdc31b3d 100644 --- a/GeoModelVisualization/CMakeLists.txt +++ b/GeoModelVisualization/CMakeLists.txt @@ -24,6 +24,8 @@ if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) include( cmake_colors_defs ) # Warn the users about what they are doing message(STATUS "${BoldGreen}Building ${PROJECT_NAME} individually, as a top-level project.${ColourReset}") + # Set a default build type + include( BuildType ) # Set default build and C++ options include( configure_cpp_options ) set( CMAKE_FIND_FRAMEWORK "LAST" CACHE STRING @@ -33,6 +35,8 @@ if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) find_package( GeoModelIO REQUIRED ${GeoModel_VERSION} ) # Set a flag to steer the build of the subpackages set( VISUALIZATION_INDIVIDUAL_BUILD ON ) + # Print Build Info on screen + include( PrintBuildInfo ) else() # I am called from other project with add_subdirectory(). message( STATUS "Building ${PROJECT_NAME} as part of the root GeoModel project.")