Fix CMake scripts, so they can be used via add_subdirectory().

This commit is contained in:
Kai Blaschke
2023-09-19 18:34:28 +02:00
parent 70c29af884
commit b88f96b780
7 changed files with 216 additions and 199 deletions

View File

@ -19,8 +19,8 @@ target_compile_definitions(projectM-unittest
# Test includes a header file from libprojectM with its full path in the source dir.
target_include_directories(projectM-unittest
PRIVATE
"${CMAKE_SOURCE_DIR}/src/libprojectM"
"${CMAKE_SOURCE_DIR}"
"${PROJECTM_SOURCE_DIR}/src/libprojectM"
"${PROJECTM_SOURCE_DIR}"
)
target_link_libraries(projectM-unittest