diff options
author | Arnur Nigmetov <nigmetov@tugraz.at> | 2019-12-03 20:34:28 +0100 |
---|---|---|
committer | Arnur Nigmetov <nigmetov@tugraz.at> | 2019-12-03 20:34:28 +0100 |
commit | 29ed61e4dd575edc9960cc6414ab2e20c02a62e1 (patch) | |
tree | 4134a502f4a91c6c8a8fcc37cd24897445dbf1e3 /bottleneck/example/CMakeLists.txt | |
parent | 5a59cfad45c155f8af89c2c6d82db2848d52a953 (diff) |
Rename directories for bottleneck and Wasserstein
Diffstat (limited to 'bottleneck/example/CMakeLists.txt')
-rw-r--r-- | bottleneck/example/CMakeLists.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/bottleneck/example/CMakeLists.txt b/bottleneck/example/CMakeLists.txt new file mode 100644 index 0000000..3ae8536 --- /dev/null +++ b/bottleneck/example/CMakeLists.txt @@ -0,0 +1,27 @@ +cmake_minimum_required(VERSION 2.8.9) + +# Default to Release +if(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE) +endif(NOT CMAKE_BUILD_TYPE) + +# Add path to ANN header files +include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../bottleneck/include") + +set(CXX_FLAGS ${CMAKE_CXX_FLAGS_RELEASE}) + +if(NOT WIN32) + set(CMAKE_CXX_FLAGS "-O3 -DNDEBUG -DBOOST_DISABLE_ASSERTS") + add_definitions(-std=c++11) +endif(NOT WIN32) + + +if(UNIX) + # specify full path to ANN + set_property(TARGET bottleneck PROPERTY IMPORTED_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}/../bottleneck/build/libbottleneck.a") +endif(UNIX) + +add_executable (bottleneck_dist bottleneck_dist.cpp) + +target_link_libraries(bottleneck_dist PUBLIC bottleneck) + |