Commit 3b53ad12 authored by Arnaud Blanchard's avatar Arnaud Blanchard
Browse files

Using BLAAR_DIR variable in cmake.

parent c2a7f751
......@@ -26,7 +26,7 @@ add_subdirectory(${BLAAR_DIR}/blc/blc_core blc_core)
endif()
include_directories(include ${BLC_CORE_INCLUDE_DIR} ${BLC_CHANNEL_INCLUDE_DIR} ${BLC_PROGRAM_INCLUDE_DIR})
include_directories(include ${BLC_CORE_INCLUDE_DIRS} ${BLC_CHANNEL_INCLUDE_DIRS} ${BLC_PROGRAM_INCLUDE_DIRS})
#source files
set(sources src/blc_processes.cpp)
......@@ -36,7 +36,9 @@ add_library(shared_blc_processes SHARED ${sources})
add_library(static_blc_processes STATIC ${sources})
target_link_libraries(shared_blc_processes shared_blc_program shared_blc_channel shared_blc_core)
set(BLC_PROCESSES_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include PARENT_SCOPE)
set(BLC_PROCESSES_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/include PARENT_SCOPE)
set(BLC_PROCESSES_LIBRARY shared_blc_processes PARENT_SCOPE)
#Both librairies have the same name only the extension will change depending on the OS
set_target_properties(shared_blc_processes PROPERTIES OUTPUT_NAME blc_processes)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment