123456789101112131415161718192021 |
- cmake_minimum_required(VERSION 3.1.0)
- project(lfr_socket VERSION 0.1.0)
-
- include(CTest)
- enable_testing()
-
- set(THREADS_PREFER_PTHREAD_FLAG ON)
-
- find_package(Threads REQUIRED)
-
- add_executable(lfr_socket lfr_socket.cpp lfr_socket_main.cpp)
- add_library(lfr_socket_lib lfr_socket.cpp)
-
- target_link_libraries( lfr_socket Threads::Threads)
- target_link_libraries( lfr_socket_lib Threads::Threads)
- target_include_directories(lfr_socket PUBLIC .)
- target_include_directories(lfr_socket_lib PUBLIC .)
-
- set(CPACK_PROJECT_NAME ${PROJECT_NAME})
- set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
- include(CPack)
|