From 605997cc1a03a878ab46e5cc7009fb7490aeeab9 Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Fri, 27 Dec 2024 13:22:19 -0500 Subject: [PATCH] fix cmake --- src/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 5a1a8d383..033523c8a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -5,9 +5,9 @@ message(STATUS "CMAKE_BUILD_TYPE : " ${CMAKE_BUILD_TYPE}) add_library(ada-include-source INTERFACE) target_include_directories(ada-include-source INTERFACE $) add_library(ada-source INTERFACE) -target_sources(ada-source INTERFACE $/ada.cpp) +file(GLOB_RECURSE ada_cpp_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp) target_link_libraries(ada-source INTERFACE ada-include-source) -add_library(ada ada.cpp) +add_library(ada ${ada_cpp_files}) target_compile_features(ada PUBLIC cxx_std_20) target_include_directories(ada PRIVATE $ ) target_include_directories(ada PUBLIC "$") @@ -58,4 +58,4 @@ endif() if(ADA_LOGGING) target_compile_definitions(ada PRIVATE ADA_LOGGING=1) -endif() \ No newline at end of file +endif()