Skip to content

Commit

Permalink
Fixing CMakelists in ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
bernatx committed Oct 23, 2023
1 parent a3029fe commit a436feb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion RecastBuilder/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@ include_directories(Include)

if (WIN32)
add_executable(RecastBuilder WIN32 ${SOURCES})
set_target_properties(RecastBuilder PROPERTIES LINK_FLAGS /SUBSYSTEM:CONSOLE)
elseif(APPLE)
add_executable(RecastBuilder MACOSX_BUNDLE ${SOURCES})
else()
add_executable(RecastBuilder ${SOURCES})
set(cmake_exe_linker_flags "${cmake_exe_linker_flags} /subsystem:console")
endif()

add_dependencies(RecastBuilder DebugUtils Detour DetourCrowd DetourTileCache Recast)
target_link_libraries(RecastBuilder DebugUtils Detour DetourCrowd DetourTileCache Recast)
set_target_properties(RecastBuilder PROPERTIES LINK_FLAGS /SUBSYSTEM:CONSOLE)


install(TARGETS RecastBuilder
RUNTIME DESTINATION bin
Expand Down

0 comments on commit a436feb

Please sign in to comment.