sneedmc/libraries/LocalPeer/CMakeLists.txt

29 lines
538 B
CMake
Raw Normal View History

2022-03-19 17:08:28 +00:00
cmake_minimum_required(VERSION 3.9.4)
project(LocalPeer)
find_package(Qt5 COMPONENTS Core Network REQUIRED)
set(SINGLE_SOURCES
src/LocalPeer.cpp
src/LockedFile.cpp
src/LockedFile.h
include/LocalPeer.h
)
if(UNIX)
2018-07-15 12:51:05 +00:00
list(APPEND SINGLE_SOURCES
src/LockedFile_unix.cpp
)
endif()
if(WIN32)
2018-07-15 12:51:05 +00:00
list(APPEND SINGLE_SOURCES
src/LockedFile_win.cpp
)
endif()
add_library(LocalPeer STATIC ${SINGLE_SOURCES})
target_include_directories(LocalPeer PUBLIC include)
2018-06-01 14:20:33 +00:00
target_link_libraries(LocalPeer Qt5::Core Qt5::Network)