add test binary to make sure dp_common can be used from C

This commit is contained in:
oxmox 2023-02-12 13:46:52 +01:00
parent 07033c9d13
commit c5b68bedde
2 changed files with 13 additions and 0 deletions

View file

@ -31,6 +31,10 @@ target_link_libraries(dp_imgui_demo
PRIVATE imgui
)
add_executable(dp_common_c_test dp_common_c_test.c)
target_compile_features(dp_common_c_test PRIVATE c_std_11)
target_link_libraries(dp_common_c_test PRIVATE dp_common)
add_executable(doomsim doomsim.cc)
target_compile_features(doomsim PRIVATE cxx_std_17)
target_link_libraries(doomsim

9
src/dp_common_c_test.c Normal file
View file

@ -0,0 +1,9 @@
#include "dp_common.h"
int main(int argc, char *argv[])
{
(void) argc;
(void) argv;
log_info("Hello from C11!");
return 0;
}