Commit 5c704756 authored by Arnaud Blanchard's avatar Arnaud Blanchard
Browse files

Use BLAAR_DIR as main variable

parent cb3132f7
......@@ -13,12 +13,11 @@ cmake_minimum_required(VERSION 2.6)
project(blc_program)
add_definitions(-Wall -Wextra -Wno-multichar)
get_filename_component(BLAAR_DIR ${CMAKE_SOURCE_DIR} PATH)
if (NOT TARGET shared_blc_core)
add_subdirectory(${BLAAR_DIR}/blc/blc_core blc_core)
endif()
include_directories(include ${BLC_CORE_INCLUDE_DIR}) #see if we can separate blc_channel
include_directories(include ${BLC_CORE_INCLUDE_DIRS}) #see if we can separate blc_channel
#source files
set(blc_sources src/blc_program.cpp src/blc_command.cpp)
......@@ -30,7 +29,9 @@ add_library(static_blc_program STATIC ${blc_sources})
target_link_libraries(shared_blc_program shared_blc_core)
set(BLC_PROGRAM_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include PARENT_SCOPE)
set(BLC_PROGRAM_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/include PARENT_SCOPE)
set(BLC_PROGRAM_LIBRARY shared_blc_program PARENT_SCOPE)
#Both librairies have the same name only the extension will change depending on the OS
set_target_properties(shared_blc_program PROPERTIES OUTPUT_NAME blc_program)
set_target_properties(static_blc_program PROPERTIES OUTPUT_NAME blc_program)
......
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