-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
37 lines (26 loc) · 1.11 KB
/
CMakeLists.txt
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
26
27
28
29
30
31
32
33
34
35
36
37
cmake_minimum_required(VERSION 3.0.0)
project(ipcaster VERSION 0.1.0)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
include(CTest)
enable_testing()
if(MSVC)
if(NOT HOME)
# Try for USERPROFILE as HOME equivalent:
string(REPLACE "\\" "/" HOME "$ENV{USERPROFILE}")
endif()
#set (BOOST_ROOT ${HOME}/vcpkg/installed/x86-windows)
#set (BOOST_INCLUDEDIR ${HOME}/vcpkg/installed/x86-windows/include)
#set (BOOST_LIBRARYDIR ${HOME}/vcpkg/installed/x86-windows/lib)
set(Boost_USE_STATIC_LIBS ON) # only find static libs
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost REQUIRED COMPONENTS system program_options date_time regex)
include_directories(${Boost_INCLUDE_DIRS})
set (ZLIB_INCLUDE_DIR ${HOME}/vcpkg/installed/x86-windows/include)
set (ZLIB_LIBRARY ${HOME}/vcpkg/installed/x86-windows/lib/zlib.lib)
set (OPENSSL_ROOT_DIR ${HOME}/vcpkg/installed/x86-windows)
endif()
add_subdirectory(src)
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)