forked from tango-controls/TangoDatabase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
29 lines (22 loc) · 980 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
cmake_minimum_required(VERSION 2.8.9)
project(DataBase)
include(configure/CMakeLists.txt)
set(MAJOR_VERSION "5")
set(MINOR_VERSION "6")
set(PATCH_VERSION "0")
set(PROJECT_VERSION "${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}")
set(SOURCES DataBase.cpp
DataBaseClass.cpp
DataBaseStateMachine.cpp
ClassFactory.cpp
main.cpp)
set(ADDITIONAL_SOURCES DataBaseUtils.cpp
update_starter.cpp)
include_directories("." ${TANGO_PKG_INCLUDE_DIRS} ${MYSQL_INCLUDE_DIRS})
link_directories(${TANGO_PKG_LIBRARY_DIRS})
add_executable(Databaseds ${SOURCES} ${ADDITIONAL_SOURCES})
target_link_libraries(Databaseds ${TANGO_PKG_LIBRARIES} ${MYSQL_LIBRARIES} -Wl,-z,now -pie)
target_compile_options(Databaseds PUBLIC ${TANGO_PKG_CFLAGS_OTHER} -Wall -Wextra -D_FORTIFY_SOURCE=2 -O1 -fpie)
install(TARGETS Databaseds
RUNTIME DESTINATION "${CMAKE_INSTALL_FULL_BINDIR}"
CONFIGURATIONS ${CMAKE_BUILD_TYPE})