mirror of
https://github.com/mikage-emu/mikage-dev.git
synced 2025-01-09 15:01:00 +01:00
10 lines
469 B
CMake
10 lines
469 B
CMake
# Adding an interface library to propagate include directories
|
|
add_library(framework exceptions.cpp profiler.cpp)
|
|
target_include_directories(framework INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..>)
|
|
|
|
target_link_libraries(framework PUBLIC fmt::fmt)
|
|
target_link_libraries(framework INTERFACE range-v3::range-v3)
|
|
target_link_libraries(framework PUBLIC Boost::boost)
|
|
if(libunwind_FOUND)
|
|
target_link_libraries(framework PRIVATE libunwind::unwind)
|
|
endif ()
|