diff --git a/deps/stackwalker/CMakeLists.txt b/deps/stackwalker/CMakeLists.txt new file mode 100644 index 00000000..5cbb1b12 --- /dev/null +++ b/deps/stackwalker/CMakeLists.txt @@ -0,0 +1,7 @@ +cmake_minimum_required(VERSION 3.0.2) +project(Sapphire) + +file( GLOB STACKWALKER_INCLUDE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/*.h*" ) +file( GLOB STACKWALKER_SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/*.c*" ) + +add_library( stackwalker ${STACKWALKER_INCLUDE_FILES} ${STACKWALKER_SOURCE_FILES} ) \ No newline at end of file diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 88ab338d..0b494d98 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -26,6 +26,10 @@ if( UNIX ) PUBLIC pthread stdc++fs ) +else() + target_link_libraries( common + PUBLIC + stackwalker ) endif() target_include_directories( common