You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
801 B
28 lines
801 B
cmake_minimum_required( VERSION 2.8.12 ) |
|
|
|
project( tdestopwatch ) |
|
set( VERSION 1.0.0 ) |
|
|
|
# include needed modules |
|
include( FindPkgConfig ) |
|
include( CheckFunctionExists ) |
|
include( CheckSymbolExists ) |
|
include( CheckIncludeFile ) |
|
include( CheckLibraryExists ) |
|
include( CheckCSourceCompiles ) |
|
include( CheckCXXSourceCompiles ) |
|
|
|
set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" ) |
|
include( TDEMacros ) |
|
include( TDESetupPaths ) |
|
tde_setup_paths( ) |
|
|
|
# configure checks |
|
include( ConfigureChecks.cmake ) |
|
|
|
# compiler flags |
|
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" ) |
|
set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" ) |
|
set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" ) |
|
|
|
add_subdirectory( src )
|
|
|