set(_bootstrap_sources main.cpp) if(WIN32) file(GLOB _bootstrap_resource_files CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/*.rc") list(APPEND _bootstrap_sources ${_bootstrap_resource_files}) endif() add_executable(Bootstrap ${_bootstrap_sources}) target_compile_features(Bootstrap PRIVATE cxx_std_17) set_target_properties(Bootstrap PROPERTIES AUTOMOC OFF AUTOUIC OFF AUTORCC OFF ) if(WIN32) set_target_properties(Bootstrap PROPERTIES WIN32_EXECUTABLE TRUE) target_compile_definitions(Bootstrap PRIVATE UNICODE _UNICODE) target_link_libraries(Bootstrap PRIVATE shell32) endif()