diff --git a/RecastBuilder/CMakeLists.txt b/RecastBuilder/CMakeLists.txt index 8757570d3..e9bd98540 100644 --- a/RecastBuilder/CMakeLists.txt +++ b/RecastBuilder/CMakeLists.txt @@ -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