# Check if cmake has the required version CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0 FATAL_ERROR) # Set name of our project to "CBMROOT". Has to be done # after check of cmake version project(UNIGEN) # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ # is checked set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules") # Load some basic macros which are needed later on Include(Macros) Include(CTest) Include(CheckCompiler) #Check the compiler and set the compile and link flags Check_Compiler() set(LIBRARY_OUTPUT_PATH "${CMAKE_BINARY_DIR}/lib") set(EXECUTABLE_OUTPUT_PATH "${CMAKE_BINARY_DIR}/bin") set(INCLUDE_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/include") If(NOT INSTALL_DIR) Set(INSTALL_DIR "/tmp/myunigen") EndIf(NOT INSTALL_DIR) # Check if the user wants to build the project in the source # directory CHECK_OUT_OF_SOURCE_BUILD() find_package(ROOT 5.32.00 REQUIRED) Add_Subdirectory(base) Add_Subdirectory(converters) Add_Subdirectory(tasks) Add_Subdirectory(input)