Add default source groups for all targets

This commit is contained in:
Steffen Olszewski 2023-05-10 21:49:22 +02:00
parent ff36530506
commit 496427f7b3
3 changed files with 5 additions and 0 deletions

View File

@ -123,6 +123,8 @@ message("oatpp version: '${OATPP_THIS_MODULE_VERSION}'")
include(cmake/msvc-runtime.cmake)
configure_msvc_runtime()
include(cmake/project.cmake)
add_subdirectory(src)
if(OATPP_BUILD_TESTS)

View File

@ -294,6 +294,7 @@ add_library(oatpp
oatpp/web/url/mapping/Pattern.hpp
oatpp/web/url/mapping/Router.hpp
)
set_target_source_groups(oatpp STRIP_PREFIX "oatpp")
set_target_properties(oatpp PROPERTIES
CXX_STANDARD 11
@ -343,6 +344,7 @@ if(OATPP_LINK_TEST_LIBRARY)
oatpp-test/UnitTest.hpp
oatpp-test/web/ClientServerTestRunner.hpp
)
set_target_source_groups(oatpp-test STRIP_PREFIX oatpp-test)
set_target_properties(oatpp-test PROPERTIES
CXX_STANDARD 11

View File

@ -117,6 +117,7 @@ add_executable(oatppAllTests
oatpp/web/server/handler/AuthorizationHandlerTest.cpp
oatpp/web/server/handler/AuthorizationHandlerTest.hpp
)
set_target_source_groups(oatppAllTests STRIP_PREFIX "oatpp")
target_link_libraries(oatppAllTests PRIVATE oatpp PRIVATE oatpp-test)