3 cmake_minimum_required(VERSION 2.6.0)
5 if(COMMAND cmake_policy)
6 cmake_policy(SET CMP0003 NEW)
7 endif(COMMAND cmake_policy)
9 # Include our own cmake modules
10 set(CMAKE_MODULE_PATH ${eVaf_SOURCE_DIR}/mk/cmake)
13 find_package(Qt4 4.6 REQUIRED)
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)
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)
28 # Where common eVaf header files are located
29 set(eVaf_INCLUDE ${CMAKE_SOURCE_DIR}/src/libs ${CMAKE_SOURCE_DIR}/src/plugins)
31 # Include platform-specific rules
36 include(CMakeLinux.txt)
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)
44 # Uncomment if you want to see the commands that make runs
45 #set(CMAKE_VERBOSE_MAKEFILE ON)
47 # Include subdirectories