cmake_minimum_required(VERSION 3.1)
project(WebRun)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin")
include_directories(revlib/include include)
set(SOURCE_FILES main.cpp)
add_executable(WebRun ${SOURCE_FILES})
TARGET_LINK_LIBRARIES(WebRun libboost_system.a libboost_filesystem.a libsqlite3.a)
Another example:
cmake_minimum_required(VERSION 3.1)
project(Occlusion)
find_package(PCL 1.3 REQUIRED COMPONENTS common io octree surface)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin")
set(SOURCE_FILES main.cpp)
add_executable(Occlusion ${SOURCE_FILES})
target_link_libraries(Occlusion ${PCL_LIBRARIES})