Warning, /libraries/perceptualcolor/tests/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: Lukas Sommer <sommerluk@gmail.com>
0002 # SPDX-License-Identifier: BSD-2-Clause OR MIT
0003
0004
0005
0006
0007
0008 ################# Tool launching the color dialog #################
0009 add_executable(perceptualcolorpicker)
0010 # target_sources should normally always use PRIVATE. Details:
0011 # crascit.com/2016/01/31/enhanced-source-file-handling-with-target_sources
0012 target_sources(
0013 perceptualcolorpicker
0014 PRIVATE perceptualcolorpicker.cpp)
0015 target_link_libraries(
0016 perceptualcolorpicker
0017 # Transitive dependencies (PUBLIC, INTERFACE) don’t make sense
0018 # for executables, since you can’t link against an executable.
0019 # Therefore using PRIVAT:
0020 PRIVATE "perceptualcolor-${MAJOR_VERSION}" ${LCMS2_LIBRARIES})
0021
0022
0023
0024
0025
0026 ################# Test tool #################
0027 add_executable(testapp)
0028 # target_sources should normally always use PRIVATE. Details:
0029 # crascit.com/2016/01/31/enhanced-source-file-handling-with-target_sources
0030 target_sources(
0031 testapp
0032 PRIVATE testapp.cpp)
0033 if(MSVC_DLL)
0034 target_compile_definitions(testapp PUBLIC MSVC_DLL)
0035 endif()
0036 target_link_libraries(
0037 testapp
0038 # Transitive dependencies (PUBLIC, INTERFACE) don’t make sense
0039 # for executables, since you can’t link against an executable.
0040 # Therefore using PRIVAT:
0041 PRIVATE "perceptualcolorinternal-${MAJOR_VERSION}" ${LCMS2_LIBRARIES})