blob: dc5bf6d85dbbfce2668df27ddc944c82494dfb62 (
plain)
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
|
# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Instruct CMake to run moc automatically when needed.
set(CMAKE_AUTOMOC ON)
#set(CMAKE_AUTOUIC ON)
#set(CMAKE_AUTORCC ON)
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
configure_file(defaults.h.win32 ${PROJECT_BINARY_DIR}/lib/configuration/defaults.h)
else()
configure_file(defaults.h.linux ${PROJECT_BINARY_DIR}/lib/configuration/defaults.h)
endif()
add_library(configuration
configuration.cpp
configuration.h)
target_include_directories(configuration
PRIVATE ${Boost_INCLUDE_DIRS})
target_link_libraries(configuration
Qt5::Core Qt5::Widgets
${Boost_LIBRARIES}
)
|