18 lines
449 B
CMake
18 lines
449 B
CMake
if(${HOTRELOAD})
|
|
add_library(game SHARED main.c)
|
|
get_target_property(ENGINE_INCLUDES engine INCLUDE_DIRECTORIES)
|
|
target_include_directories(game PRIVATE ${ENGINE_INCLUDES})
|
|
else()
|
|
add_executable(game main.c)
|
|
target_link_libraries(game PRIVATE engine)
|
|
endif()
|
|
set_default_target_options(game)
|
|
target_include_directories(game PUBLIC include)
|
|
|
|
target_link_libraries(game PRIVATE
|
|
m
|
|
LibXml2::LibXml2
|
|
SDL2::SDL2
|
|
SDL2_image::SDL2_image
|
|
)
|