summaryrefslogtreecommitdiff
path: root/examples/find_package_oce/CMakeLists.txt
blob: 93b36639e6e4c5bb25397829d1df88d506650352 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# This example shows how to use find_package(OCE) by specifying
# a list of toolkits.
# If a toolkit is missing or if OCE is not found, a fatal error
# is thrown, we do not try to find an Opencascade installation.

cmake_minimum_required(VERSION 2.6)

find_package(OCE REQUIRED COMPONENTS TKPrim)

# Include files reside in ${OCE_INCLUDE_DIRS};
include_directories(${OCE_INCLUDE_DIRS})

# We do not need library path, they will be automatically imported.
add_executable(computeSurface computeSurface.cpp)
target_link_libraries(computeSurface TKPrim)