3 if (CMAKE_VERSION VERSION_LESS 2.8.3)
4 get_filename_component (CMAKE_CURRENT_LIST_DIR ${CMAKE_CURRENT_LIST_FILE} PATH)
7 # Tell the user project where to find our headers and libraries
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@")
12 # Allows loading NLOPT settings from another project
13 set (NLOPT_CONFIG_FILE "${CMAKE_CURRENT_LIST_FILE}")
15 # List of compilation flags -DTOTO to export
16 set (NLOPT_DEFINITIONS "@NLOPT_DEFINITIONS@")
18 # Our library dependencies (contains definitions for IMPORTED targets)
19 include ("${CMAKE_CURRENT_LIST_DIR}/NLoptLibraryDepends.cmake")
21 # These are IMPORTED targets created by NLOPTLibraryDepends.cmake
22 set (NLOPT_LIBRARIES "@NLOPT_LIBRARIES@")
24 if (CMAKE_VERSION VERSION_LESS 2.8.3)
25 set (CMAKE_CURRENT_LIST_DIR)