blob: 90fe0ce71758ded30460422afa3d4eaba63ad263 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+
set(mkembedconfig_SOURCES
mkembedconfig.c
)
add_executable(mkembedconfig ${mkembedconfig_SOURCES})
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)
endmacro()
|