set up CMakeLists.txt

This commit is contained in:
2024-04-15 03:38:32 +00:00
parent bfec8b0842
commit 05735a7ae3
7 changed files with 28 additions and 2 deletions

8
test/CMakeLists.txt Normal file
View File

@ -0,0 +1,8 @@
if(TEST_BPT_ONLY)
add_executable(code oj_test_interface_for_bpt.cpp)
target_link_libraries(code argparse)
set_target_properties(code PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
else()
add_executable(oj_test_interface_for_bpt oj_test_interface_for_bpt.cpp)
target_link_libraries(oj_test_interface_for_bpt argparse)
endif()

View File

@ -0,0 +1,5 @@
#include <argparse/argparse.hpp>
int main()
{
return 0;
}