Skip to content

Commit 14a918f

Browse files
committed
[cmake] Fix build on platforms other than Windows
1 parent 42e015e commit 14a918f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

example/CMakeLists.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1+
if(MSVC)
2+
add_executable(inexor-vulkan-renderer-example
3+
main.cpp
4+
${CMAKE_BINARY_DIR}/include/inexor/vulkan-renderer/win_resource_file.rc
5+
)
6+
else()
17
add_executable(inexor-vulkan-renderer-example
2-
main.cpp
3-
${CMAKE_BINARY_DIR}/include/inexor/vulkan-renderer/win_resource_file.rc
8+
main.cpp
49
)
10+
endif()
511

612
set_target_properties(
713
inexor-vulkan-renderer-example PROPERTIES

0 commit comments

Comments
 (0)