mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-05 00:38:00 +01:00
cmake: test: Allow building tests as standalone project
This commit is contained in:
parent
f98eb9eb70
commit
1d0f4586e7
1 changed files with 2 additions and 1 deletions
|
@ -3,7 +3,8 @@ find_package(CMocka)
|
||||||
if (CMOCKA_FOUND)
|
if (CMOCKA_FOUND)
|
||||||
set(CMAKE_INSTALL_RPATH "\$ORIGIN/../src")
|
set(CMAKE_INSTALL_RPATH "\$ORIGIN/../src")
|
||||||
add_executable(engine-tests tests.c timeline.c character.c)
|
add_executable(engine-tests tests.c timeline.c character.c)
|
||||||
|
include_directories("../src")
|
||||||
target_link_libraries(engine-tests cmocka libsuperderpy)
|
target_link_libraries(engine-tests cmocka libsuperderpy)
|
||||||
else(CMOCKA_FOUND)
|
else(CMOCKA_FOUND)
|
||||||
message("CMocka not found; tests disabled.")
|
message(WARNING "CMocka not found; tests disabled.")
|
||||||
endif(CMOCKA_FOUND)
|
endif(CMOCKA_FOUND)
|
||||||
|
|
Loading…
Reference in a new issue