CMakeLists.txt
1.9 KB
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
57
58
59
60
61
62
63
64
cmake_minimum_required(VERSION 3.0)
include(projectheader)
project_header(orm)
find_package( Qt5Core REQUIRED )
find_package( Qt5Sql REQUIRED )
include_directories( SYSTEM
${Qt5Core_INCLUDE_DIRS}
${Qt5Sql_INCLUDE_DIRS}
)
include(compiler)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/../submodules/config/src
${CMAKE_CURRENT_SOURCE_DIR}/../submodules/global/src
${CMAKE_CURRENT_SOURCE_DIR}/../submodules/logutils/src
${CMAKE_CURRENT_SOURCE_DIR}/../submodules/interfaces/src
${CMAKE_CURRENT_SOURCE_DIR}/../submodules/datatypes/src
${CMAKE_CURRENT_SOURCE_DIR}/../submodules/dbconnector/src
${CMAKE_CURRENT_SOURCE_DIR}/../submodules/transqueue/src
${CMAKE_CURRENT_SOURCE_DIR}/../submodules/pugixml/src
)
set(SRC_LIST
${CMAKE_CURRENT_SOURCE_DIR}/multisortfilterproxymodel.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ormhandler.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ormthread.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ormtable.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ormtablerow.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ormbatchchange.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ormbatchchange.h
${CMAKE_CURRENT_SOURCE_DIR}/multisortfilterproxymodel.h
${CMAKE_CURRENT_SOURCE_DIR}/ormhandler.h
${CMAKE_CURRENT_SOURCE_DIR}/ormthread.h
${CMAKE_CURRENT_SOURCE_DIR}/ormtable.h
${CMAKE_CURRENT_SOURCE_DIR}/ormtablerow.h
${CMAKE_CURRENT_SOURCE_DIR}/timeline.cpp
${CMAKE_CURRENT_SOURCE_DIR}/timeline.h
${CMAKE_CURRENT_SOURCE_DIR}/timestamp.cpp
${CMAKE_CURRENT_SOURCE_DIR}/timestamp.h
)
include(qtmoc)
create_mocs( SRC_LIST MOC_LIST
${CMAKE_CURRENT_SOURCE_DIR}/multisortfilterproxymodel.h
${CMAKE_CURRENT_SOURCE_DIR}/ormhandler.h
${CMAKE_CURRENT_SOURCE_DIR}/ormthread.h
${CMAKE_CURRENT_SOURCE_DIR}/ormtable.h
)
link_directories(
${CMAKE_BINARY_DIR}/lib
)
include(library)
add_libraries(
${Qt5Core_LIBRARIES}
${Qt5Sql_LIBRARIES}
)
include(installation)
install_component()