9 lines
534 B
CMake
9 lines
534 B
CMake
cmake_minimum_required(VERSION 3.7)
|
|
set(SOURCES kdsingleapplication.cpp kdsingleapplication_localsocket.cpp)
|
|
set(HEADERS kdsingleapplication.h kdsingleapplication_localsocket_p.h)
|
|
qt_wrap_cpp(MOC ${HEADERS})
|
|
add_library(kdsingleapplication STATIC ${SOURCES} ${MOC})
|
|
target_compile_definitions(kdsingleapplication PRIVATE -DKDSINGLEAPPLICATION_STATIC_BUILD)
|
|
target_include_directories(kdsingleapplication PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
target_link_libraries(kdsingleapplication PUBLIC ${QtCore_LIBRARIES} ${QtNetwork_LIBRARIES} )
|