Commit 850436fc760d0d39b83990376456a424f424a69b
1 parent
79bc2c81
Added CMakeLists
Showing
1 changed file
with
32 additions
and
0 deletions
CMakeLists.txt
0 → 100644
1 | +cmake_minimum_required(VERSION 3.16) | |
2 | +LIST( APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/submodules/cmake ) | |
3 | +include(projectheader) | |
4 | +project_header(datamodels) | |
5 | + | |
6 | +find_package(Qt5 "5.15.0" COMPONENTS Core CONFIG REQUIRED ) | |
7 | + | |
8 | +include_directories( SYSTEM | |
9 | + ${Qt5Core_INCLUDE_DIRS} | |
10 | +} | |
11 | + | |
12 | +include(compiler) | |
13 | + | |
14 | +set( SRC_LIST | |
15 | +) | |
16 | + | |
17 | +include(qtmoc) | |
18 | +create_mocs( SRC_LIST MOC_LIST | |
19 | +) | |
20 | + | |
21 | +link_directories( | |
22 | + ${CMAKE_BINARY_DIR}/lib | |
23 | +) | |
24 | + | |
25 | +include(library) | |
26 | +add_libraries( | |
27 | + ${Qt5Core_LIBRARIES} | |
28 | +) | |
29 | + | |
30 | + | |
31 | +include(installation) | |
32 | +install_component() | ... | ... |