diff options
| author | 2024-10-23 15:44:12 +0200 | |
|---|---|---|
| committer | 2024-12-29 14:46:30 +0100 | |
| commit | 3bf6f11939844b2daa7c6555c5c3d828095308d5 (patch) | |
| tree | 0228150692cca68b847d1949c03c7f1c8777b005 /src/libparser/CMakeLists.txt | |
| parent | cb1dcb5ee28994a2cd691ad696a5ba4c3c3802ea (diff) | |
| download | OneRoll-3bf6f11939844b2daa7c6555c5c3d828095308d5.tar.gz OneRoll-3bf6f11939844b2daa7c6555c5c3d828095308d5.zip | |
changes
Diffstat (limited to 'src/libparser/CMakeLists.txt')
| -rw-r--r-- | src/libparser/CMakeLists.txt | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/libparser/CMakeLists.txt b/src/libparser/CMakeLists.txt index 8793d45..80b9a25 100644 --- a/src/libparser/CMakeLists.txt +++ b/src/libparser/CMakeLists.txt @@ -5,6 +5,7 @@ set(QT_VERSION_MAJOR "6") find_package(Qt${QT_VERSION_MAJOR} ${QT_REQUIRED_VERSION} CONFIG REQUIRED COMPONENTS Core Test Gui Svg) find_package(Qt${QT_VERSION_MAJOR} ${QT_REQUIRED_VERSION} CONFIG COMPONENTS Qml Concurrent) +option(STATIC_BUILD OFF) include_directories(${CMAKE_CURRENT_SOURCE_DIR} result node) set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) @@ -77,9 +78,17 @@ else() endif() IF(STATIC_BUILD) - set_target_properties(diceparser_static PROPERTIES OUTPUT_NAME diceparser CLEAN_DIRECT_OUTPUT 1) add_library(diceparser_static STATIC ${dice_sources} ) - target_include_directories(diceparser_static PRIVATE include) + set_target_properties(diceparser_static PROPERTIES OUTPUT_NAME diceparser CLEAN_DIRECT_OUTPUT 1) + target_include_directories(diceparser_static + PRIVATE + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/include + ${CMAKE_CURRENT_SOURCE_DIR}/node + ${CMAKE_CURRENT_SOURCE_DIR}/result + PUBLIC + $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> + $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>) target_link_libraries(diceparser_static PUBLIC Qt6::Core Qt6::Gui Qt6::Svg) if(${HAS_INSTALL}) rinstallLib(diceparser_static libraries) |