From 3257b51327df9cc74e3034bb577acc3ff642e0b0 Mon Sep 17 00:00:00 2001 From: Sarah Ohlin Date: Sat, 22 Oct 2022 17:54:30 -0400 Subject: [PATCH] feat: added win32 compilation --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cbc2ada..81c641c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,10 +29,12 @@ set(flags) if(WIN32) set(APP_ICON_RESOURCE_WINDOWS "${CMAKE_CURRENT_SOURCE_DIR}/appicon.rc") + add_executable(bq-r WIN32 ${sources} ${imgui_sources} ${APP_ICON_RESOURCE_WINDOWS}) + list(APPEND libs sfml-main) +else() + add_executable(bq-r ${sources} ${imgui_sources} ${APP_ICON_RESOURCE_WINDOWS}) endif() -add_executable(bq-r ${sources} ${imgui_sources} ${APP_ICON_RESOURCE_WINDOWS}) - target_compile_options(bq-r PUBLIC ${flags}) target_include_directories(bq-r PUBLIC ${includes}) target_link_libraries(bq-r ${libs}) @@ -45,6 +47,7 @@ if(WIN32) $ $ $ + $ $ ) file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/assets DESTINATION ${CMAKE_CURRENT_BINARY_DIR})