################################################################################ # # medInria # Copyright (c) INRIA 2013. All rights reserved. # See LICENSE.txt for details in the root of the sources or: # https://github.com/medInria/medInria-public/blob/master/LICENSE.txt # This software is distributed WITHOUT ANY WARRANTY; without even # the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR # PURPOSE. # ################################################################################ set(TARGET_NAME medCoreGui) ## ############################################################################# ## find requireds ## ############################################################################# # find dtk find_package(dtk REQUIRED) ## ############################################################################# ## List Sources ## ############################################################################# list_source_files(${TARGET_NAME} ${CMAKE_CURRENT_SOURCE_DIR} source/settings/widgets source/settings source/widgets source notification/widgets notification process process/arithmetic_operation process/diffusion_processes process/morphomath_operation process/mask_image process/single_filter parameter toolboxes widget ) list_header_directories_to_include(${TARGET_NAME} ${${TARGET_NAME}_HEADERS} ) ## ############################################################################# ## add library ## ############################################################################# add_library(${TARGET_NAME} SHARED) target_sources(${TARGET_NAME} PRIVATE ${${TARGET_NAME}_CFILES} ${${TARGET_NAME}_QRC} ) target_sources(${TARGET_NAME} PRIVATE ${RELATIVE_${TARGET_NAME}_HEADERS}) set_target_properties(${TARGET_NAME} PROPERTIES PUBLIC_HEADER "${RELATIVE_${TARGET_NAME}_HEADERS}") ## ############################################################################# ## include directorie. ## ############################################################################# target_include_directories(${TARGET_NAME} PRIVATE ${dtk_INCLUDE_DIRS} PUBLIC "$" "$" ) ## ############################################################################# ## Link ## ############################################################################# target_link_libraries(${TARGET_NAME} PUBLIC Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::Test Qt${QT_VERSION_MAJOR}::Xml med::Core # dtk dtkCore dtkLog # Legacy dtkCoreSupport dtkGuiSupport ) ## ############################################################################# ## install ## ############################################################################# #set_lib_install_rules(${TARGET_NAME}) set_lib_install_rules(${TARGET_NAME} NAMESPACE med VERSION 4.0 LIBRARY_OUTPUT_NAME_PREFIX med DESTINATION ${MEDINRIA_PATH} PUBLIC_DEPENDENCIES "medInria REQUIRED COMPONENTS Core" "dtk REQUIRED COMPONENTS dtkCore dtkLog dtkCoreSupport dtkGuiSupport" "Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Xml Widgets Test" )