Implement hot reloading
This commit is contained in:
@@ -1,12 +1,17 @@
|
||||
add_executable(game main.c)
|
||||
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
|
||||
engine
|
||||
m
|
||||
LibXml2::LibXml2
|
||||
SDL2::SDL2
|
||||
SDL2::SDL2main
|
||||
SDL2_image::SDL2_image
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user