-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
43 lines (30 loc) · 1014 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Copyright (C) 2012 TesJin Group <http://www.tesjin.ru/>
# Set projectname (must be done AFTER setting configurationtypes)
set(PROJECT FlyWork)
project(${PROJECT})
# CMake policies (can not be handled elsewhere)
cmake_minimum_required (VERSION 2.6)
# build in Release-mode by default if not explicitly set
if( NOT CMAKE_BUILD_TYPE )
set(CMAKE_BUILD_TYPE "Release")
endif()
# basic packagesearching and setup (further support will be needed, this is a preliminary release!)
find_package (Qt4 REQUIRED)
# add Qt libs to project
include (${QT_USE_FILE})
add_definitions(${QT_DEFINITIONS})
# set default buildoptions and print them
include(cmake/options.cmake)
# Find revision ID and hash of the sourcetree
include(cmake/genrev.cmake)
# print out the results before continuing
include(cmake/showoptions.cmake)
# add core sources
add_subdirectory(src)
if (MSVC)
add_definitions (/W3)
elseif (CMAKE_COMPILER_IS_GNUCXX)
add_definitions (-Wall -pedantic)
else ()
message ("Unknown compiler")
endif ()