osb/source/client/CMakeLists.txt

47 lines
1.3 KiB
CMake
Raw Normal View History

2023-06-20 14:33:09 +10:00
INCLUDE_DIRECTORIES (
${STAR_EXTERN_INCLUDES}
${STAR_CORE_INCLUDES}
${STAR_BASE_INCLUDES}
${STAR_GAME_INCLUDES}
${STAR_PLATFORM_INCLUDES}
${STAR_APPLICATION_INCLUDES}
${STAR_RENDERING_INCLUDES}
${STAR_WINDOWING_INCLUDES}
${STAR_FRONTEND_INCLUDES}
)
SET (star_client_HEADERS
StarClientApplication.hpp
2024-12-18 18:10:07 -08:00
StarRenderingLuaBindings.hpp
2023-06-20 14:33:09 +10:00
)
SET (star_client_SOURCES
StarClientApplication.cpp
2024-12-18 18:10:07 -08:00
StarRenderingLuaBindings.cpp
2023-06-20 14:33:09 +10:00
)
IF (STAR_SYSTEM_WINDOWS)
SET (star_client_RESOURCES
starbound.rc
)
ENDIF ()
ADD_EXECUTABLE (starbound WIN32
$<TARGET_OBJECTS:star_extern> $<TARGET_OBJECTS:star_core> $<TARGET_OBJECTS:star_base> $<TARGET_OBJECTS:star_game>
$<TARGET_OBJECTS:star_application> $<TARGET_OBJECTS:star_rendering> $<TARGET_OBJECTS:star_windowing> $<TARGET_OBJECTS:star_frontend>
${star_client_HEADERS} ${star_client_SOURCES} ${star_client_RESOURCES})
2024-03-08 20:09:27 +11:00
IF (STAR_PRECOMPILED_HEADERS)
2024-03-08 20:09:27 +11:00
TARGET_PRECOMPILE_HEADERS (starbound REUSE_FROM star_core)
ENDIF()
IF (UNIX)
SET_TARGET_PROPERTIES (starbound PROPERTIES LINK_FLAGS "-Wl,-rpath,'$ORIGIN'")
ENDIF()
IF (STAR_SYSTEM_MACOS)
SET_TARGET_PROPERTIES (starbound PROPERTIES XCODE_ATTRIBUTE_ENABLE_HARDENED_RUNTIME YES)
2024-03-17 15:56:29 +11:00
ENDIF()
2024-12-18 18:10:07 -08:00
TARGET_LINK_LIBRARIES (starbound ${STAR_EXT_LIBS} ${STAR_EXT_GUI_LIBS})