add test binary to make sure dp_common can be used from C
This commit is contained in:
parent
07033c9d13
commit
c5b68bedde
2 changed files with 13 additions and 0 deletions
|
@ -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
9
src/dp_common_c_test.c
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue