]> vaikene.ee Git - evaf/blob - CMakeLists.txt
Merge branch 'ScosTime' of ssh://vaikene.net/var/gitpub/evaf into ScosTime
[evaf] / CMakeLists.txt
1 project(eVaf)
2
3 set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required
4 cmake_minimum_required(VERSION 2.6.0)
5
6 if(COMMAND cmake_policy)
7 cmake_policy(SET CMP0003 NEW)
8 endif(COMMAND cmake_policy)
9
10 # Include our own cmake modules
11 set(CMAKE_MODULE_PATH ${eVaf_SOURCE_DIR}/mk/cmake)
12
13 # Find Qt4
14 find_package(Qt4 4.6 REQUIRED)
15
16 # Default to the Debug build type if none is specified
17 IF(NOT CMAKE_BUILD_TYPE)
18 SET(CMAKE_BUILD_TYPE Debug)
19 ENDIF(NOT CMAKE_BUILD_TYPE)
20
21 # Add QT_NO_DEBUG for Release builds
22 IF(CMAKE_BUILD_TYPE STREQUAL Release)
23 message(STATUS "Release build")
24 ADD_DEFINITIONS(-DQT_NO_DEBUG)
25 ELSE(CMAKE_BUILD_TYPE STREQUAL Release)
26 message(STATUS "Debug build")
27 ENDIF(CMAKE_BUILD_TYPE STREQUAL Release)
28
29 # Where common eVaf header files are located
30 set(eVaf_INCLUDE ${CMAKE_SOURCE_DIR}/src/libs ${CMAKE_SOURCE_DIR}/src/plugins)
31
32 # Include platform-specific rules
33 if(WIN32)
34 include(CMakeWin.txt)
35 else(WIN32)
36 if(UNIX)
37 include(CMakeLinux.txt)
38 endif(UNIX)
39 endif(WIN32)
40
41 # Output all the executables and libraries to the bin directory
42 set(EXECUTABLE_OUTPUT_PATH ${eVaf_BINARY_DIR}/bin)
43 set(LIBRARY_OUTPUT_PATH ${eVaf_BINARY_DIR}/bin)
44
45 # Uncomment if you want to see the commands that make runs
46 #set(CMAKE_VERBOSE_MAKEFILE ON)
47
48 # Include subdirectories
49 add_subdirectory(src)