Beginning CMake configuration for ZT
Only tested on Windows so far
This commit is contained in:
parent
af5d3a7f0b
commit
0b3b5f6174
111 changed files with 19586 additions and 36 deletions
33
controller/CMakeLists.txt
Normal file
33
controller/CMakeLists.txt
Normal file
|
@ -0,0 +1,33 @@
|
|||
cmake_minimum_required(VERSION 2.8)
|
||||
project(zt_controller)
|
||||
|
||||
if(WIN32)
|
||||
add_definitions(-DNOMINMAX)
|
||||
if(CMAKE_BUILD_TYPE EQUAL "Debug")
|
||||
|
||||
endif(CMAKE_BUILD_TYPE EQUAL "Debug")
|
||||
endif(WIN32)
|
||||
|
||||
set(ctl_src
|
||||
DB.cpp
|
||||
EmbeddedNetworkController.cpp
|
||||
FileDB.cpp
|
||||
RabbitMQ.cpp
|
||||
)
|
||||
|
||||
set(ctl_hdr
|
||||
DB.hpp
|
||||
EmbeddedNetworkController.hpp
|
||||
FileDB.hpp
|
||||
RabbitMQ.hpp
|
||||
)
|
||||
|
||||
if(BUILD_CENTRAL_CONTROLLER)
|
||||
add_definitions(-DZT_CONTROLLER_USE_LIBPQ)
|
||||
include_directories("../ext/librabbitmq/librabbitmq" ${PostgreSQL_INCLUDE_DIRS})
|
||||
|
||||
set(ctl_src ${ctl_src} PostgreSQL.cpp)
|
||||
set(ctl_hdr ${ctl_hdr} PostgreSQL.hpp)
|
||||
endif(BUILD_CENTRAL_CONTROLLER)
|
||||
|
||||
add_library(${PROJECT_NAME} STATIC ${ctl_src} ${ctl_hdr})
|
Loading…
Add table
Add a link
Reference in a new issue