Skip to content

Commit

Permalink
Examples: Adjust source groups, icns dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
brackeen committed Mar 2, 2024
1 parent 607fc6f commit 9deca17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/cmake/GLFMAppTarget.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ else()
set(GLFM_APP_ASSETS "")
endif()

source_group("src" FILES ${GLFM_APP_SRC})
source_group("Source" FILES ${GLFM_APP_SRC})

if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
# HACK: Make modifications to shell_minimal.html to take up the entire browser window
Expand Down Expand Up @@ -62,7 +62,9 @@ elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin")

add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${GLFM_APP_TARGET_NAME}.icns
COMMAND bash -c "${CMAKE_CURRENT_SOURCE_DIR}/icons/gen_icns.sh ${GLFM_APP_TARGET_NAME} ${CMAKE_CURRENT_BINARY_DIR}"
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/icons/${GLFM_APP_TARGET_NAME}.png
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/icons)
source_group("Resources" FILES ${CMAKE_CURRENT_BINARY_DIR}/${GLFM_APP_TARGET_NAME}.icns ${GLFM_APP_ASSETS})

add_executable(${GLFM_APP_TARGET_NAME} ${GLFM_APP_SRC} ${GLFM_APP_ASSETS} ${CMAKE_CURRENT_BINARY_DIR}/${GLFM_APP_TARGET_NAME}.icns)

Expand Down

0 comments on commit 9deca17

Please sign in to comment.