Fixed bad cmake command

pull/116/head^2
Ryzerth 2021-04-26 15:17:24 +02:00
rodzic 1ba3756be0
commit 3d65e515ad
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

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