chore: fix clang-format and all cmake bool options set to true/false
[KDIS.git] / examples / logging / playback / CMakeLists.txt
blob02b2985570385424cf2c858f8ee2a1334de668f9
2 # Headers & Sources
4 set(KDIS_EXAMPLES_LOGGING_PLAYBACK_HEADERS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include)
5 set(KDIS_EXAMPLES_LOGGING_PLAYBACK_SOURCES_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)
7 set(KDIS_EXAMPLES_LOGGING_PLAYBACK_HEADERS)
8 set(KDIS_EXAMPLES_LOGGING_PLAYBACK_SOURCES ${KDIS_EXAMPLES_LOGGING_PLAYBACK_SOURCES_DIR}/main.cpp)
11 # Executable
13 add_executable(
14   ${PROJECT_NAME}_examples_logging_playback ${KDIS_EXAMPLES_LOGGING_PLAYBACK_HEADERS}
15                                             ${KDIS_EXAMPLES_LOGGING_PLAYBACK_SOURCES}
17 target_link_libraries(${PROJECT_NAME}_examples_logging_playback PRIVATE KDIS::KDIS)
18 target_compile_definitions(
19   ${PROJECT_NAME}_examples_logging_playback
20   PRIVATE DIS_VERSION=${DIS_VERSION}
21           $<$<BOOL:${KDIS_USE_ENUM_DESCRIPTORS}>:KDIS_USE_ENUM_DESCRIPTORS>
23 # TODO target_compile_options( ${PROJECT_NAME}_examples_logging_playback PRIVATE
24 # $<$<CXX_COMPILER_ID:MSVC>:/W4 /WX> $<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wall -Wextra -Wpedantic
25 # -Werror> )