forked from SFTtech/openage
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
56 lines (48 loc) · 2.6 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
cmake_minimum_required(VERSION 2.8.10)
#git tag --contains=fa7141f => 2.8.8 # compiler version detection
#git tag --contains=fbda7bb => 2.8.10 # find GLEW module
project(openage C CXX)
# main build configuration file
# text art: figlet -f rounded "[SFT] openage" | sed -e 's/\\/\\\\/g'
message("")
message("==============================================================================")
message(" ___ ______ _______ _______ ___ ")
message("| _)/ _____|_______|_______|_ | ")
message("| | ( (____ _____ _ | | ___ ____ _____ ____ _____ ____ _____ ")
message("| | \\____ \\| ___) | | | | / _ \\| _ \\| ___ | _ \\(____ |/ _ | ___ |")
message("| |_ _____) ) | | | _| | | |_| | |_| | ____| | | / ___ ( (_| | ____|")
message("|___|______/|_| |_| (___| \\___/| __/|_____)_| |_\\_____|\\___ |_____)")
message(" |_| (_____| ")
message("")
message("Welcome to the SFT Technologies computer aided openage build system!")
message(" We are glad you decided to use our product.")
message(" To make your experience with the software more fun, we offer a wide range of cutting edge public relation campaigns:")
message(" - Would you like to sell your personal data? Become a ultra-special premium user with no additional privileges!")
message(" - You can start gaining fame with our unique loyalty point collecting service!")
message(" - We automatically subscribed you to our daily Email newsletter, how awesome is that?")
message("")
message(" We hope your consumery needs will be fully fullfilled,")
message(" otherwise, utilize our professional customer support team:")
message(" * IRC: #sfttech at freenode.org")
message("==============================================================================")
message("")
# include build configuration modules
include("cmake/python.cmake")
python_init()
include("cmake/cpp.cmake")
include("cmake/version.cmake")
include("cmake/doxygen.cmake")
# include source subdirectories
add_subdirectory("src")
add_subdirectory("convert")
# process the included python sources, generate setup.py
process_python_modules()
# generate Makefile
configure_file(${CMAKE_SOURCE_DIR}/Makefile.in ${CMAKE_SOURCE_DIR}/Makefile @ONLY)
# show build configuration overview
message("CFLAGS = ${CMAKE_C_FLAGS}")
message("CXXFLAGS = ${CMAKE_CXX_FLAGS}")
message("LDFLAGS = ${CMAKE_EXE_LINKER_FLAGS}")
message("PREFIX = ${CMAKE_INSTALL_PREFIX}")
message("BUILDDIR = ${CMAKE_BINARY_DIR}")
# TODO add more messages