diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index d217ad27..d75a04f5 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -12,15 +12,15 @@ else () endif () add_definitions(-DSDRPP_IS_CORE) -# Set the install prefix -add_compile_definitions(INSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}") - # Main code file(GLOB_RECURSE SRC "src/*.cpp" "src/*.c") # Add code to dyn lib add_library(sdrpp_core SHARED ${SRC}) +# Set the install prefix +target_compile_definitions(sdrpp_core PUBLIC INSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}") + # Include core headers target_include_directories(sdrpp_core PUBLIC "src/") target_include_directories(sdrpp_core PUBLIC "src/imgui")