15 lines
388 B
CMake
15 lines
388 B
CMake
add_library(engine STATIC
|
|
src/Engine.cpp
|
|
)
|
|
|
|
target_include_directories(engine
|
|
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src
|
|
)
|
|
|
|
# SDL_TARGET is set by cmake/SDLSetup.cmake
|
|
target_link_libraries(engine PUBLIC ${SDL_TARGET})
|
|
|
|
target_compile_definitions(engine PRIVATE
|
|
$<$<STREQUAL:${SDL_LINK_TYPE},static>:SDL_STATIC_LIB>
|
|
) |