From 5875ea429eeb9da3977812e8ea0a9d570c13aab7 Mon Sep 17 00:00:00 2001 From: Alexander Penev Date: Sun, 24 Sep 2023 17:33:20 +0000 Subject: [PATCH] Use find_package to locate CppInterOp --- CMakeLists.txt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9bfa1f11..b6c99d5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -94,11 +94,10 @@ find_package(cppzmq REQUIRED CONFIG) find_package(pugixml REQUIRED) #CppInterOp -#TODO: Make CppInterOp cmake package and use find_package -#find_package(CppInterOp REQUIRED CONFIG PATHS "${CPPINTEROP_DIR}") -add_library(clangCppInterOp SHARED IMPORTED) -set_property(TARGET clangCppInterOp PROPERTY IMPORTED_LOCATION "${CPPINTEROP_DIR}/lib/libclangCppInterOp.so") -set_property(TARGET clangCppInterOp PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${CPPINTEROP_DIR}/../include") +find_package(CppInterOp REQUIRED CONFIG PATHS "${CPPINTEROP_DIR}") +#add_library(clangCppInterOp SHARED IMPORTED) +#set_property(TARGET clangCppInterOp PROPERTY IMPORTED_LOCATION "${CPPINTEROP_DIR}/lib/libclangCppInterOp.so") +#set_property(TARGET clangCppInterOp PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${CPPINTEROP_DIR}/../include") # message(STATUS "CppInterOp Imported location: ${CPPINTEROP_DIR}/lib/libclangCppInterOp.so") message(STATUS "CppInterOp include location: ${CPPINTEROP_DIR}/../include")