Add semi-test
This commit is contained in:
parent
524809f28f
commit
9227232eef
|
@ -3,6 +3,7 @@ project(test_shared_library LANGUAGES C VERSION 1.0.2 DESCRIPTION "Shared C Libr
|
|||
include(GNUInstallDirs)
|
||||
add_library(test_shared_library SHARED test_shared_library.c test_shared_library.h)
|
||||
set(CMAKE_C_STANDARD 99)
|
||||
enable_testing()
|
||||
|
||||
set_target_properties(test_shared_library PROPERTIES
|
||||
VERSION ${PROJECT_VERSION}
|
||||
|
@ -22,5 +23,7 @@ install(FILES ${CMAKE_BINARY_DIR}/test_shared_library.pc
|
|||
install(EXPORT test_shared_library_export DESTINATION share/test_shared_library/cmake)
|
||||
|
||||
|
||||
add_executable(test test.c)
|
||||
target_link_libraries(test test_shared_library)
|
||||
add_executable(test_library test.c)
|
||||
target_link_libraries(test_library test_shared_library)
|
||||
|
||||
add_test(test_shared_lib_dynamic test_library)
|
||||
|
|
Loading…
Reference in New Issue
Block a user