icinga2/tools/mkembedconfig/CMakeLists.txt

25 lines
611 B
CMake
Raw Normal View History

# Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+
2013-11-03 13:45:26 +01:00
set(mkembedconfig_SOURCES
mkembedconfig.c
)
add_executable(mkembedconfig ${mkembedconfig_SOURCES})
2013-11-03 13:45:26 +01:00
set_target_properties (
mkembedconfig PROPERTIES
FOLDER Bin
)
macro(MKEMBEDCONFIG_TARGET EmbedInput EmbedOutput)
add_custom_command(
OUTPUT ${EmbedOutput}
COMMAND mkembedconfig
ARGS ${EmbedInput} ${CMAKE_CURRENT_BINARY_DIR}/${EmbedOutput}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
DEPENDS mkembedconfig ${EmbedInput}
)
set_property(SOURCE ${CMAKE_CURRENT_BINARY_DIR}/${EmbedOutput} PROPERTY EXCLUDE_UNITY_BUILD TRUE)
2013-11-03 13:45:26 +01:00
endmacro()