Skip to content
Snippets Groups Projects
Commit 343490e3 authored by Patrick MADELA's avatar Patrick MADELA
Browse files

Fix cmake usage of dependencies

parent a01ee6bb
Branches
Tags
No related merge requests found
......@@ -6,9 +6,6 @@ option(BUILD_SHARED_LIBS "Build using shared libraries" ON)
find_package(cpptango CONFIG REQUIRED)
find_package(yat CONFIG REQUIRED)
include_directories(${cpptango_INCLUDE_DIRS} ${yat_INCLUDE_DIRS})
link_directories(${cpptango_LIBRARY_DIRS} ${yat_LIBRARY_DIRS})
add_compile_definitions(YAT4TANGO_PROJECT_NAME=${PROJECT_NAME})
add_compile_definitions(YAT4TANGO_PROJECT_VERSION=${VERSION})
......
......@@ -24,7 +24,7 @@ set (source_files
add_library (yat4tango ${source_files})
target_include_directories(yat4tango PUBLIC ${CMAKE_SOURCE_DIR}/include)
target_link_libraries(yat4tango ${YAT_LIBRARIES} ${TANGO_LIBRARIES})
target_link_libraries(yat4tango ${yat_LIBRARIES} ${cpptango_LIBRARIES})
if(MAJOR_VERSION)
set_target_properties (yat4tango PROPERTIES VERSION ${VERSION} SOVERSION ${MAJOR_VERSION})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment