From 3bf6f11939844b2daa7c6555c5c3d828095308d5 Mon Sep 17 00:00:00 2001 From: Renaud Guezennec Date: Wed, 23 Oct 2024 15:44:12 +0200 Subject: changes --- src/libparser/CMakeLists.txt | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/libparser/CMakeLists.txt') 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 + $ + $) target_link_libraries(diceparser_static PUBLIC Qt6::Core Qt6::Gui Qt6::Svg) if(${HAS_INSTALL}) rinstallLib(diceparser_static libraries) -- cgit v1.2.3-70-g09d2