mirror of
https://github.com/oatpp/oatpp.git
synced 2025-02-17 17:29:57 +08:00
Add default source groups for all targets
This commit is contained in:
parent
ff36530506
commit
496427f7b3
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user