Debian Codegraph @

tools/roughness-prefilter/CMakeLists.txt

raw ◀ ▶
1 Debian patch touch this file
1 cmake_minimum_required(VERSION 3.19)
2 project(roughness-prefilter)
3
4 set(TARGET roughness-prefilter)
5
6 # ==================================================================================================
7 # Sources and headers
8 # ==================================================================================================
9 file(GLOB_RECURSE HDRS src/*.h)
10
11 set(SRCS src/main.cpp)
12
13 # ==================================================================================================
14 # Target definitions
15 # ==================================================================================================
16 add_executable(${TARGET} ${HDRS} ${SRCS})
17
•18 target_link_libraries(${TARGET} PRIVATE math utils ZLIB::ZLIB image imageio getopt)
19
20 # ==================================================================================================
21 # Compile options and optimizations
22 # ==================================================================================================
23 if (NOT LINUX)
24 target_compile_options(${TARGET} PRIVATE )
25 endif()
26
27 # =================================================================================================
28 # Licenses
29 # ==================================================================================================
30 set(MODULE_LICENSES getopt libpng tinyexr libz)
31 set(GENERATION_ROOT ${CMAKE_CURRENT_BINARY_DIR}/generated)
32 list_licenses(${GENERATION_ROOT}/licenses/licenses.inc ${MODULE_LICENSES})
33 target_include_directories(${TARGET} PRIVATE ${GENERATION_ROOT})
34
35 # ==================================================================================================
36 # Installation
37 # ==================================================================================================
38 install(TARGETS ${TARGET} RUNTIME DESTINATION bin)
39 install(FILES "README.md" DESTINATION docs/ RENAME "${TARGET}.md")