-
Notifications
You must be signed in to change notification settings - Fork 52
/
CMakeLists.txt
52 lines (40 loc) · 1.84 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
cmake_minimum_required(VERSION 3.9)
project(CatLearnQt LANGUAGES CXX)
if (UNIX)
add_compile_options(-Wall -fPIC -Wno-stringop-overflow)
endif(UNIX)
set(CMAKE_OBJECT_PATH_MAX 1024)
message(STATUS "------------------------------------------------------------" )
message(STATUS "[CatLearnQt] Configuration summary." )
message(STATUS "------------------------------------------------------------ ")
message(STATUS " System configuration:" )
message(STATUS " .. Processor type .............. = ${CMAKE_SYSTEM_PROCESSOR}")
message(STATUS " .. CMake executable ............ = ${CMAKE_COMMAND}" )
message(STATUS " .. CMake version ............... = ${CMAKE_VERSION}" )
message(STATUS " .. System name ................. = ${CMAKE_SYSTEM}" )
message(STATUS " .. C++ compiler ................ = ${CMAKE_CXX_COMPILER}" )
message(STATUS " .. C compiler .................. = ${CMAKE_C_COMPILER}" )
message(STATUS " .. size(void*) ................. = ${CMAKE_SIZEOF_VOID_P}" )
message(STATUS " .. cmake current source ................. = ${CMAKE_CURRENT_SOURCE_DIR}")
message(STATUS " .. cmake system name ................. = ${CMAKE_SYSTEM_NAME}")
message(STATUS "------------------------------------------------------------ ")
set(3RDPARTY
)
set(MODULES
QCatGrayCore
QCatGrayQuick
QCatGrayWidgets
)
set(EXAMPLES
QCatGrayQuickExamples
QCatGrayWidgetExamples
)
foreach(3rdparty_module ${3RDPARTY})
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/${3rdparty_module})
endforeach(3rdparty_module ${3RDPARTY})
foreach(module ${MODULES})
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/modules/${module})
endforeach(module ${MODULES})
foreach(example ${EXAMPLES})
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/examples/${example})
endforeach(example ${EXAMPLES})