chiark / gitweb /
Use trusty
[nlopt.git] / cmake / NLoptConfig.cmake.in
1
2 # defined since 2.8.3
3 if (CMAKE_VERSION VERSION_LESS 2.8.3)
4   get_filename_component (CMAKE_CURRENT_LIST_DIR ${CMAKE_CURRENT_LIST_FILE} PATH)
5 endif ()
6
7 # Tell the user project where to find our headers and libraries
8
9 set (NLOPT_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/@RELATIVE_NLOPT_INCLUDE_DIRS@")
10 set (NLOPT_LIBRARY_DIRS "${CMAKE_CURRENT_LIST_DIR}/@RELATIVE_NLOPT_LIB_DIR@")
11
12 # Allows loading NLOPT settings from another project
13 set (NLOPT_CONFIG_FILE "${CMAKE_CURRENT_LIST_FILE}")
14
15 # List of compilation flags -DTOTO to export
16 set (NLOPT_DEFINITIONS "@NLOPT_DEFINITIONS@")
17
18 # Our library dependencies (contains definitions for IMPORTED targets)
19 include ("${CMAKE_CURRENT_LIST_DIR}/NLoptLibraryDepends.cmake")
20
21 # These are IMPORTED targets created by NLOPTLibraryDepends.cmake
22 set (NLOPT_LIBRARIES "@NLOPT_LIBRARIES@")
23
24 if (CMAKE_VERSION VERSION_LESS 2.8.3)
25   set (CMAKE_CURRENT_LIST_DIR)
26 endif ()