diff options
Diffstat (limited to 'libraries/LocalPeer/CMakeLists.txt')
-rw-r--r-- | libraries/LocalPeer/CMakeLists.txt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/libraries/LocalPeer/CMakeLists.txt b/libraries/LocalPeer/CMakeLists.txt new file mode 100644 index 00000000..99e3fe4d --- /dev/null +++ b/libraries/LocalPeer/CMakeLists.txt @@ -0,0 +1,29 @@ +cmake_minimum_required(VERSION 3.1) +project(LocalPeer) + +find_package(Qt5Core REQUIRED QUIET) +find_package(Qt5Network REQUIRED QUIET) + +set(SINGLE_SOURCES +src/LocalPeer.cpp +src/LockedFile.cpp +src/LockedFile.h +include/LocalPeer.h +) + +if(UNIX) + list(APPEND SINGLE_SOURCES + src/LockedFile_unix.cpp + ) +endif() + +if(WIN32) + list(APPEND SINGLE_SOURCES + src/LockedFile_win.cpp + ) +endif() + +add_library(LocalPeer STATIC ${SINGLE_SOURCES}) +target_include_directories(LocalPeer PUBLIC include) + +qt5_use_modules(LocalPeer Core Network) |