15 lines
572 B
CMake
15 lines
572 B
CMake
|
###############################################################################
|
||
|
set(TOOL_BINARIES backtrace crash log poisson macro scratch)
|
||
|
|
||
|
if (NOT WIN32)
|
||
|
list(APPEND TOOL_BINARIES cpuid)
|
||
|
endif()
|
||
|
|
||
|
foreach (tool ${TOOL_BINARIES})
|
||
|
add_executable (util_${tool} ${tool}.cpp)
|
||
|
set_target_properties (util_${tool} PROPERTIES OUTPUT_NAME ${tool})
|
||
|
target_link_libraries (util_${tool} cruft::util)
|
||
|
#target_include_directories(util_${tool} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
||
|
target_include_directories(util_${tool} PRIVATE "${PREFIX_BASE}")
|
||
|
endforeach ()
|