30 lines
445 B
CMake
30 lines
445 B
CMake
add_subdirectory(base)
|
|
add_subdirectory(geometry)
|
|
|
|
add_library(engine
|
|
memory.c
|
|
)
|
|
target_include_directories(engine
|
|
PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
${RAYLIB_DIR}/include
|
|
)
|
|
|
|
target_link_directories(engine
|
|
PUBLIC
|
|
${RAYLIB_DIR}/lib
|
|
)
|
|
|
|
target_link_libraries(engine
|
|
PUBLIC
|
|
base
|
|
geometry
|
|
raylib
|
|
m
|
|
)
|
|
|
|
#if (BUILD_TESTING)
|
|
find_package(cmocka 1.1.0 REQUIRED)
|
|
add_subdirectory(tests)
|
|
#endif()
|