Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions CMOD/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@ file(GLOB_RECURSE CMOD_SRC
"${PROJECT_SOURCE_DIR}/src/*.h"
)

list(REMOVE_ITEM CMOD_SRC
"${PROJECT_SOURCE_DIR}/src/ModifierUsage.cpp"
"${PROJECT_SOURCE_DIR}/src/ModifierUsage.hpp"
)

add_library(ModifierUsage STATIC
src/ModifierUsage.cpp
src/ModifierUsage.hpp
)
add_library(DISSCO::ModifierUsage ALIAS ModifierUsage)

target_include_directories(ModifierUsage PUBLIC
"${PROJECT_SOURCE_DIR}/src"
)
target_compile_features(ModifierUsage PUBLIC cxx_std_20)

add_executable(CMOD ${CMOD_SRC})
# CMOD is consumed by LASSIE as a standalone subprocess (QProcess::start),
# not linked into it. No ENABLE_EXPORTS / WINDOWS_EXPORT_ALL_SYMBOLS is
Expand All @@ -22,6 +38,7 @@ target_link_libraries(CMOD PUBLIC PUGIXML)
# add_subdirectory(${CMAKE_SOURCE_DIR}/external-libs/muParser)
target_link_libraries(CMOD PUBLIC MUPARSER)
target_link_libraries(CMOD PUBLIC LASS)
target_link_libraries(CMOD PUBLIC DISSCO::ModifierUsage)
message(STATUS "libsndfile, pugixml, muParser, and LASS includes linked with target!")

# heavy libraries that won't change much from compile to compile in this project
Expand Down
Loading
Loading