File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.0 )
2
2
3
- project (wsjcpp-print-tree )
3
+ project (wsjcpp-print-tree C CXX )
4
4
5
5
include (${CMAKE_CURRENT_SOURCE_DIR} /src.wsjcpp/CMakeLists.txt )
6
6
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ set (WSJCPP_LIBRARIES "")
14
14
set (WSJCPP_INCLUDE_DIRS "" )
15
15
set (WSJCPP_SOURCES "" )
16
16
17
+ find_package (Threads REQUIRED )
18
+ list (APPEND WSJCPP_LIBRARIES ${CMAKE_THREAD_LIBS_INIT} )
19
+
17
20
# wsjcpp-core:v0.0.5
18
21
list (APPEND WSJCPP_INCLUDE_DIRS "./src.wsjcpp/wsjcpp_core/" )
19
22
list (APPEND WSJCPP_SOURCES "./src.wsjcpp/wsjcpp_core/wsjcpp_core.cpp" )
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ set (WSJCPP_INCLUDE_DIRS "")
17
17
set (WSJCPP_SOURCES "" )
18
18
19
19
find_package (Threads REQUIRED )
20
- list (APPEND WSJCPP_SOURCES ${CMAKE_THREAD_LIBS_INIT} )
20
+ list (APPEND WSJCPP_LIBRARIES ${CMAKE_THREAD_LIBS_INIT} )
21
21
22
22
# wsjcpp-core:v0.0.5
23
23
list (APPEND WSJCPP_INCLUDE_DIRS "../src.wsjcpp/wsjcpp_core/" )
You can’t perform that action at this time.
0 commit comments