3 set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required
4 cmake_minimum_required(VERSION 2.6.0)
6 if(COMMAND cmake_policy)
7 cmake_policy(SET CMP0003 NEW)
8 endif(COMMAND cmake_policy)
10 # Include our own cmake modules
11 set(CMAKE_MODULE_PATH ${eVaf_SOURCE_DIR}/mk/cmake)
14 find_package(Qt4 4.6 REQUIRED)
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)
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)
29 # Where common eVaf header files are located
30 set(eVaf_INCLUDE ${CMAKE_SOURCE_DIR}/src/libs ${CMAKE_SOURCE_DIR}/src/plugins)
32 # Include platform-specific rules
37 include(CMakeLinux.txt)
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)
45 # Uncomment if you want to see the commands that make runs
46 #set(CMAKE_VERBOSE_MAKEFILE ON)
48 # Include subdirectories