1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
cmake_minimum_required(VERSION 2.6)
project(claw-iterator-example)
# check profiling mode
if( CMAKE_BUILD_TYPE MATCHES profile )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_RELEASE} -pg" )
endif( CMAKE_BUILD_TYPE MATCHES profile )
# check DEBUG mode
if( CMAKE_BUILD_TYPE MATCHES debug )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_DEBUG" )
endif( CMAKE_BUILD_TYPE MATCHES debug )
# common flags
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ansi -pedantic -Wall" )
#-------------------------------------------------------------------------------
find_package(libclaw)
include_directories( ${CLAW_INCLUDE_DIRECTORY} )
add_definitions( ${CLAW_DEFINITIONS} )
add_executable( ex-iterator main.cpp )
|