diff options
| author | 2023-01-22 17:30:55 +0100 | |
|---|---|---|
| committer | 2023-01-22 17:30:55 +0100 | |
| commit | 0877e5a4cb56ba891985ac49c36b141fec8f38b2 (patch) | |
| tree | 443496e48621cb748c40873647c52943f2456917 /src/bin/cli/CMakeLists.txt | |
| parent | e68edb4ca183e971c851ced5d91e2e91ab0fa946 (diff) | |
| download | OneRoll-0877e5a4cb56ba891985ac49c36b141fec8f38b2.tar.gz OneRoll-0877e5a4cb56ba891985ac49c36b141fec8f38b2.zip | |
Update diceParser
Diffstat (limited to 'src/bin/cli/CMakeLists.txt')
| -rw-r--r-- | src/bin/cli/CMakeLists.txt | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/bin/cli/CMakeLists.txt b/src/bin/cli/CMakeLists.txt index 07d080f..e1d2b4b 100644 --- a/src/bin/cli/CMakeLists.txt +++ b/src/bin/cli/CMakeLists.txt @@ -1,10 +1,10 @@ cmake_minimum_required(VERSION 3.16) +#project(dice) option(UPDATE_TRANSLATIONS "update Translation" OFF) option(NO_PAINTER_OPERATOR "No PAINTING" OFF) MESSAGE(STATUS "UPDATE TRANSLATIONS: ${UPDATE_TRANSLATIONS}") -project(dice) # Find includes in corresponding build directories set(CMAKE_INCLUDE_CURRENT_DIR ON) @@ -60,4 +60,13 @@ IF(NO_PAINTER_OPERATOR) ELSE() target_link_libraries(dice PUBLIC Qt6::Core Qt6::Gui Qt6::Svg PRIVATE diceparser_shared) ENDIF() -INSTALL_TARGETS(/bin dice) + +include(install_helper OPTIONAL RESULT_VARIABLE=installFound) + + +if(installFound STREQUAL "NOTFOUND") + install(TARGETS dice RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT diceComp) +else() + set(CPACK_OUTPUT_CONFIG_FILE "${CMAKE_BINARY_DIR}/CPackConfigDice.cmake") + rinstallRT(dice "diceComp") +endif() |