diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d353014..81847c37 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,7 +29,3 @@ if(OATPP_BUILD_TESTS) enable_testing() add_subdirectory(test) endif() - -if(OATPP_INSTALL) - include("cmake/module-install.cmake") -endif() \ No newline at end of file diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 11cfc8af..32b7ba68 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -218,3 +218,10 @@ target_include_directories(oatpp-test PUBLIC ) add_dependencies(oatpp-test oatpp) + +####################################################################################################### +## install targets + +if(OATPP_INSTALL) + include("../cmake/module-install.cmake") +endif()