Commit a0a440de authored by Andreas Schneider's avatar Andreas Schneider

cmake: Build noise tools and install them

parent 92e48a9f
......@@ -79,6 +79,7 @@ option(VALIDATE_APPDATA_FILE "Use appstream-util (if found) to validate the .app
option(BUILD_TESTS "Build tests in src/tests/, runnable from the build/ directory" OFF)
option(BUILD_BATTERY_INDICATOR "Add an icon to the top toolbar showing the state of a laptop battery" OFF)
option(BUILD_MSYS2_INSTALL "Build an MSYS2 version of the install, aka for Windows platform, but without dependency installs" OFF)
option(BUILD_NOISE_TOOLS "Build tools for generating noise proifles" OFF)
if(USE_OPENCL)
option(TESTBUILD_OPENCL_PROGRAMS "Test-compile opencl programs (needs llvm and clang 3.9+)" ON)
......@@ -544,6 +545,7 @@ include(data/supported_extensions.cmake) # this file needs to be included first
add_subdirectory(src) # src/ needs to be before data/ so that the correct CSS file gets installed
add_subdirectory(data)
add_subdirectory(doc)
add_subdirectory(tools)
# This contains fixup_bundle
# And adding a separate subderectory as a last one will make sure
......
if (BUILD_NOISE_TOOLS)
add_subdirectory(noise)
endif()
# Only build on real unix system (exludes MingW, MSYS, etc.)
if (UNIX AND NOT WIN32)
add_executable(darktable-noiseprofile noiseprofile.c)
target_link_libraries(darktable-noiseprofile m)
install(TARGETS
darktable-noiseprofile
DESTINATION
${CMAKE_INSTALL_LIBEXECDIR}/darktable/tools
COMPONENT
DTApplication)
install(PROGRAMS
darktable-gen-noiseprofile
DESTINATION
${CMAKE_INSTALL_LIBEXECDIR}/darktable/tools
COMPONENT
DTApplication)
install(FILES
subr.sh
profiling-shot.xmp
DESTINATION
${CMAKE_INSTALL_LIBEXECDIR}/darktable/tools
COMPONENT
DTApplication)
endif()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment