1 # There are some CMake 2.6-specific features used . . .
2 cmake_minimum_required(VERSION 2.6)
4 # If the cmake_policy command exists, allow relative library paths
5 if(COMMAND cmake_policy)
6 cmake_policy(SET CMP0003 NEW)
7 endif(COMMAND cmake_policy)
9 # aesalon uses C++, not C; enable C++ support
12 # The project name is aesalon
15 # Include the build configuration file
18 # Generate version information if this is a git repository
20 execute_process(COMMAND ./version_info.sh)
21 endif(DEVELOPMENT_BUILD)
23 # Include auto-generated version information
26 # Set up a few options, depending on the build type
28 # set(CMAKE_INSTALL_PREFIX "install/")
29 set(CMAKE_BUILD_TYPE Debug)
30 else(DEVELOPMENT_BUILD)
31 set(CMAKE_BUILD_TYPE RelWithDebInfo)
32 endif(DEVELOPMENT_BUILD)
34 # Compile the tests if this is a dev build
36 add_subdirectory(tests)
37 endif(DEVELOPMENT_BUILD)
39 # Compile the monitor, if wanted
41 add_subdirectory(monitor)
44 # Compile the GUI, if wanted