Skip to content

Commit

Permalink
feat: added win32 compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahkittyy committed Oct 22, 2022
1 parent f744401 commit 3257b51
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand All @@ -45,6 +47,7 @@ if(WIN32)
$<TARGET_FILE:sfml-audio>
$<TARGET_FILE:sfml-network>
$<TARGET_FILE:sfml-system>
$<TARGET_FILE:sfml-main>
$<TARGET_FILE_DIR:bq-r>
)
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/assets DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
Expand Down

0 comments on commit 3257b51

Please sign in to comment.