1+ # Automaticly generated by wsjcpp@v0.0.1
12cmake_minimum_required (VERSION 3.0)
23
34project (unit-tests)
45
6+ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" )
7+ set (MACOSX TRUE )
8+ endif ()
9+
510set (CMAKE_CXX_STANDARD 11)
611set (EXECUTABLE_OUTPUT_PATH ${unit-tests_SOURCE_DIR})
712
813set (WSJCPP_LIBRARIES "" )
914set (WSJCPP_INCLUDE_DIRS "" )
1015set (WSJCPP_SOURCES "" )
1116
12- # Sources
13-
1417# wsjcpp-core:v0.0.4
1518list (APPEND WSJCPP_INCLUDE_DIRS "../src.wsjcpp/wsjcpp_core/" )
1619list (APPEND WSJCPP_SOURCES "../src.wsjcpp/wsjcpp_core/wsjcpp_core.cpp" )
@@ -19,21 +22,23 @@ list (APPEND WSJCPP_SOURCES "../src.wsjcpp/wsjcpp_core/unit_tests.cpp")
1922list (APPEND WSJCPP_SOURCES "../src.wsjcpp/wsjcpp_core/unit_tests.h" )
2023list (APPEND WSJCPP_SOURCES "../src.wsjcpp/wsjcpp_core/unit_tests_main.cpp" )
2124
22- # nlohmann/json
25+ # nlohmann/json:v3.7.3
2326list (APPEND WSJCPP_INCLUDE_DIRS "../src.wsjcpp/nlohmann_json/" )
2427list (APPEND WSJCPP_SOURCES "../src.wsjcpp/nlohmann_json/json.hpp" )
2528
26- # wsjcpp-yaml
27- list (APPEND WSJCPP_SOURCES "../src/wsjcpp_geoip.h " )
29+ # wsjcpp-geoip:v0.0.1
30+ list (APPEND WSJCPP_INCLUDE_DIRS "../src" )
2831list (APPEND WSJCPP_SOURCES "../src/wsjcpp_geoip.cpp" )
32+ list (APPEND WSJCPP_SOURCES "../src/wsjcpp_geoip.h" )
2933
30- # include header dirs
31- list (APPEND WSJCPP_INCLUDE_DIRS "../src" )
34+ # unit-tests
3235list (APPEND WSJCPP_INCLUDE_DIRS "src" )
33-
3436list (APPEND WSJCPP_SOURCES "./src/unit_test_parser_ip_api_com.h" )
3537list (APPEND WSJCPP_SOURCES "./src/unit_test_parser_ip_api_com.cpp" )
3638
39+ # required-libraries
40+ list (APPEND WSJCPP_LIBRARIES "-lpthread" )
41+
3742# required-pkg-config
3843## CURL
3944FIND_PACKAGE (CURL)
@@ -56,4 +61,5 @@ install(
5661 "unit-tests"
5762 RUNTIME DESTINATION
5863 /usr/bin
59- )
64+ )
65+
0 commit comments