diff --git a/CMakeLists.txt b/CMakeLists.txt index a6c4b81..7f147eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,7 +63,7 @@ install(EXPORT cpp-ap-targets DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/cpp-ap ) -# For FetchContent usage +# Include test directory if CPP-AP is a top level project if (CPP_AP_IS_TOP_LEVEL_PROJECT AND BUILD_TESTS) add_subdirectory(test) endif() diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 461b8d4..bbbfa3d 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -36,7 +36,7 @@ target_include_directories(run_tests PRIVATE ${INCLUDE_DIRS}) target_compile_options(run_tests PRIVATE ${CMAKE_CXX_FLAGS}) target_link_libraries(run_tests PRIVATE cpp-ap) -# Create symbolic links in the build_ut directory +# Create symbolic links in the build directory set(EXECUTABLE_DIR "${CMAKE_CURRENT_BINARY_DIR}") foreach(config ${CMAKE_CONFIGURATION_TYPES}) file(CREATE_LINK "${EXECUTABLE_DIR}/run_tests" "${EXECUTABLE_DIR}/test_${config}" SYMBOLIC)