project(eVaf) set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required cmake_minimum_required(VERSION 2.6.0) if(COMMAND cmake_policy) cmake_policy(SET CMP0003 NEW) endif(COMMAND cmake_policy) # Include our own cmake modules set(CMAKE_MODULE_PATH ${eVaf_SOURCE_DIR}/mk/cmake) # Find Qt4 find_package(Qt4 4.6 REQUIRED) # Default to the Debug build type if none is specified IF(NOT CMAKE_BUILD_TYPE) SET(CMAKE_BUILD_TYPE Debug) ENDIF(NOT CMAKE_BUILD_TYPE) # Add QT_NO_DEBUG for Release builds IF(CMAKE_BUILD_TYPE STREQUAL Release) message(STATUS "Release build") ADD_DEFINITIONS(-DQT_NO_DEBUG) ELSE(CMAKE_BUILD_TYPE STREQUAL Release) message(STATUS "Debug build") ENDIF(CMAKE_BUILD_TYPE STREQUAL Release) # Where common eVaf header files are located set(eVaf_INCLUDE ${CMAKE_SOURCE_DIR}/src/libs ${CMAKE_SOURCE_DIR}/src/plugins) # Include platform-specific rules if(WIN32) include(CMakeWin.txt) else(WIN32) if(UNIX) include(CMakeLinux.txt) endif(UNIX) endif(WIN32) # Output all the executables and libraries to the bin directory set(EXECUTABLE_OUTPUT_PATH ${eVaf_BINARY_DIR}/bin) set(LIBRARY_OUTPUT_PATH ${eVaf_BINARY_DIR}/bin) # Uncomment if you want to see the commands that make runs #set(CMAKE_VERBOSE_MAKEFILE ON) # Include subdirectories add_subdirectory(src)