Implemented a VisualizationRequest system to determine if data should be used.
[aesalon.git] / CMakeLists.txt
blob795405383bc45f8908f8801da0894044be17e997
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
10 enable_language(CXX)
12 # The project name is aesalon
13 project(aesalon)
15 # Include the build configuration file
16 include(build.config)
18 # Generate version information if this is a git repository
19 if(DEVELOPMENT_BUILD)
20     execute_process(COMMAND ./version_info.sh)
21 endif(DEVELOPMENT_BUILD)
23 # Include auto-generated version information
24 include(version_info)
26 # Set up a few options, depending on the build type
27 if(DEVELOPMENT_BUILD)
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
35 if(DEVELOPMENT_BUILD)
36     add_subdirectory(tests)
37 endif(DEVELOPMENT_BUILD)
39 # Compile the monitor, if wanted
40 if(BUILD_MONITOR)
41     add_subdirectory(monitor)
42 endif(BUILD_MONITOR)
44 # Compile the GUI, if wanted
45 if(BUILD_GUI)
46     add_subdirectory(gui)
47 endif(BUILD_GUI)