project(eVaf) cmake_minimum_required(VERSION 3.1) set (CMAKE_CXX_STANDARD 11) if(COMMAND cmake_policy) cmake_policy(SET CMP0003 NEW) cmake_policy(SET CMP0020 NEW) endif(COMMAND cmake_policy) # Find Qt packages find_package(Qt5Core REQUIRED) find_package(Qt5Xml REQUIRED) find_package(Qt5Widgets) find_package(Qt5Sql) # Include our own cmake modules set(CMAKE_MODULE_PATH ${eVaf_SOURCE_DIR}/mk/cmake) set(CMAKE_INCLUDE_CURRENT_DIR ON) # 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)