Skip to content

Commit

Permalink
example: support local install
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoes committed Aug 18, 2018
1 parent 5be2bc6 commit 5e1316b
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions example/takeoff_land/CMakeLists.txt
Expand Up @@ -2,14 +2,20 @@ cmake_minimum_required(VERSION 2.8.12)

project(takeoff_and_land)

add_definitions(-std=c++11)

if(NOT MSVC)
add_definitions("-std=c++11 -Wall -Wextra -Werror")
# Line below required if /usr/local/include is not in your default includes
#include_directories(/usr/local/include)
# Line below required if /usr/local/lib is not in your default linker path
#link_directories(/usr/local/lib)
add_definitions(-Wall -Wextra -Werror)
else()
add_definitions("-std=c++11 -WX -W2")
add_definitions(-WX -W2)
endif()

# Line below required if /usr/local/include is not in your default includes
#include_directories(/usr/local/include)
# Line below required if /usr/local/lib is not in your default linker path
#link_directories(/usr/local/lib)

if (LOCAL_INSTALL)
include_directories(${CMAKE_SOURCE_DIR}/../../install/include)
link_directories(${CMAKE_SOURCE_DIR}/../../install/lib)
endif()
Expand Down

0 comments on commit 5e1316b

Please sign in to comment.