about summary refs log tree commit diff stats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt14
1 files changed, 8 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 756c776..6d9a111 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -3,11 +3,9 @@ project (lingo_ap_tracker)
3 3
4set(CMAKE_BUILD_TYPE Debug) 4set(CMAKE_BUILD_TYPE Debug)
5 5
6find_package(wxWidgets COMPONENTS core base) 6find_package(wxWidgets CONFIG REQUIRED)
7include(${wxWidgets_USE_FILE}) 7find_package(OpenSSL REQUIRED)
8 8find_package(yaml-cpp REQUIRED)
9find_package(OpenSSL)
10find_package(yaml-cpp)
11 9
12include_directories( 10include_directories(
13 vendor/hkutil 11 vendor/hkutil
@@ -18,8 +16,12 @@ include_directories(
18 vendor/websocketpp 16 vendor/websocketpp
19 vendor/wswrap/include 17 vendor/wswrap/include
20 ${yaml-cpp_INCLUDE_DIRS} 18 ${yaml-cpp_INCLUDE_DIRS}
19 ${OpenSSL_INCLUDE_DIRS}
21) 20)
22 21
22find_path(SYSTEM_INCLUDE_DIR zlib.h)
23include_directories(${SYSTEM_INCLUDE_DIR})
24
23link_directories(${openssl_LIBRARY_DIRS}) 25link_directories(${openssl_LIBRARY_DIRS})
24 26
25add_executable(lingo_ap_tracker 27add_executable(lingo_ap_tracker
@@ -36,4 +38,4 @@ add_executable(lingo_ap_tracker
36) 38)
37set_property(TARGET lingo_ap_tracker PROPERTY CXX_STANDARD 17) 39set_property(TARGET lingo_ap_tracker PROPERTY CXX_STANDARD 17)
38set_property(TARGET lingo_ap_tracker PROPERTY CXX_STANDARD_REQUIRED ON) 40set_property(TARGET lingo_ap_tracker PROPERTY CXX_STANDARD_REQUIRED ON)
39target_link_libraries(lingo_ap_tracker ${wxWidgets_LIBRARIES} ${yaml-cpp_LIBRARIES} ${openssl_LIBRARIES}) 41target_link_libraries(lingo_ap_tracker PRIVATE OpenSSL::SSL OpenSSL::Crypto wx::core wx::base yaml-cpp)