mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-12 12:08:00 +01:00
10 lines
327 B
CMake
10 lines
327 B
CMake
find_package(CMocka)
|
|
|
|
if (CMOCKA_FOUND)
|
|
set(CMAKE_INSTALL_RPATH "\$ORIGIN/../src")
|
|
add_executable(engine-tests tests.c timeline.c character.c)
|
|
include_directories("../src")
|
|
target_link_libraries(engine-tests cmocka libsuperderpy)
|
|
else(CMOCKA_FOUND)
|
|
message(WARNING "CMocka not found; tests disabled.")
|
|
endif(CMOCKA_FOUND)
|