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