2026-07-10 00:38:23 -07:00
|
|
|
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()
|
2026-07-09 09:17:30 +00:00
|
|
|
|
2026-07-10 00:38:23 -07:00
|
|
|
add_executable(Bootstrap ${_bootstrap_sources})
|
2026-07-09 09:17:30 +00:00
|
|
|
target_compile_features(Bootstrap PRIVATE cxx_std_17)
|
2026-07-10 00:38:23 -07:00
|
|
|
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()
|