diff --git a/CMakeExternals/ANNCMakeLists.txt b/CMakeExternals/ANNCMakeLists.txt index b95a87a745..b65ec9384e 100644 --- a/CMakeExternals/ANNCMakeLists.txt +++ b/CMakeExternals/ANNCMakeLists.txt @@ -1,80 +1,80 @@ cmake_minimum_required(VERSION 3.1) project(ANN) set(${PROJECT_NAME}_MAJOR_VERSION 1) set(${PROJECT_NAME}_MINOR_VERSION 1) set(${PROJECT_NAME}_PATCH_VERSION 2) set(${PROJECT_NAME}_VERSION ${${PROJECT_NAME}_MAJOR_VERSION}.${${PROJECT_NAME}_MINOR_VERSION}.${${PROJECT_NAME}_PATCH_VERSION}) set(ANN_HEADERS include/ANN/ANN.h include/ANN/ANNperf.h include/ANN/ANNx.h ) set(ANN_SOURCES src/ANN.cpp src/bd_fix_rad_search.cpp src/bd_pr_search.cpp src/bd_search.cpp src/bd_tree.cpp src/brute.cpp src/kd_dump.cpp src/kd_fix_rad_search.cpp src/kd_pr_search.cpp src/kd_search.cpp src/kd_split.cpp src/kd_tree.cpp src/kd_util.cpp src/perf.cpp ) add_library(ann SHARED ${ANN_HEADERS} ${ANN_SOURCES}) target_include_directories(ann - PUBLIC $ - $ + PUBLIC "$" + "$" ) target_compile_definitions(ann PRIVATE $<$:DLL_EXPORTS>) set_target_properties(ann PROPERTIES SOVERSION ${${PROJECT_NAME}_VERSION}) set(${PROJECT_NAME}_LIBRARIES ann) # Install support install(TARGETS ${${PROJECT_NAME}_LIBRARIES} EXPORT ${PROJECT_NAME}_TARGETS LIBRARY DESTINATION lib ARCHIVE DESTINATION lib RUNTIME DESTINATION bin ) install(FILES ${ANN_HEADERS} DESTINATION include/${PROJECT_NAME} ) # Config files configure_file( ${PROJECT_NAME}Config.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake @ONLY ) configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}ConfigVersion.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake @ONLY ) export(EXPORT ${PROJECT_NAME}_TARGETS FILE ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Targets.cmake ) set(config_package_location lib/cmake/${PROJECT_NAME}) install(EXPORT ${PROJECT_NAME}_TARGETS FILE ${PROJECT_NAME}Targets.cmake DESTINATION ${config_package_location} ) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake" "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake" DESTINATION ${config_package_location} ) diff --git a/CMakeExternals/CppUnitCMakeLists.txt b/CMakeExternals/CppUnitCMakeLists.txt index 144a7fa1cf..993cc852cd 100644 --- a/CMakeExternals/CppUnitCMakeLists.txt +++ b/CMakeExternals/CppUnitCMakeLists.txt @@ -1,229 +1,229 @@ cmake_minimum_required(VERSION 3.1) project(CppUnit) set(${PROJECT_NAME}_MAJOR_VERSION 1) set(${PROJECT_NAME}_MINOR_VERSION 12) set(${PROJECT_NAME}_PATCH_VERSION 1) set(${PROJECT_NAME}_VERSION ${${PROJECT_NAME}_MAJOR_VERSION}.${${PROJECT_NAME}_MINOR_VERSION}.${${PROJECT_NAME}_PATCH_VERSION}) # UNICODE support # See Visual C Unicode Programming Summary # http://msdn.microsoft.com/en-us/library/dybsewaf%28VS.100%29.aspx #add_definitions(-DUNICODE -D_UNICODE) # Generates include/cppunit/config-auto.h # This is originally done by autoconf include(CheckIncludeFile) include(CheckIncludeFileCXX) include(CheckCXXSourceCompiles) include(CheckCSourceCompiles) include(CheckLibraryExists) include(CheckFunctionExists) #Not used == not seen in any *.h *.cpp files #Not used FUNC_STRING_COMPARE_STRING_FIRST check_include_file_cxx(sstream CPPUNIT_HAVE_SSTREAM) check_include_file_cxx(strstream CPPUNIT_HAVE_STRSTREAM) set (CMAKE_REQUIRED_DEFINITIONS -DHAVE_STRSTREAM=CPPUNIT_HAVE_STRSTREAM) check_cxx_source_compiles( "#ifdef HAVE_STRSTREAM #include #else #include #endif int main() { std::ostrstream message; message << \"Hello\"; return 0; }" CPPUNIT_HAVE_CLASS_STRSTREAM) check_include_file_cxx(cmath CPPUNIT_HAVE_CMATH) #Not used, dld library is obsolete anyway HAVE_DLD #Not used HAVE_DLERROR check_include_file(dlfcn.h CPPUNIT_HAVE_DLFCN_H) check_c_source_compiles( "#include int main() { return finite(3); }" CPPUNIT_HAVE_FINITE) check_c_source_compiles( "#include int main() { return _finite(3); }" CPPUNIT_HAVE__FINITE) check_include_file_cxx(cxxabi.h CPPUNIT_HAVE_GCC_ABI_DEMANGLE) #Not used HAVE_INTTYPES_H check_c_source_compiles( "#include int main() { return isfinite(3); }" CPPUNIT_HAVE_ISFINITE) check_library_exists(dl dlopen "" CPPUNIT_HAVE_LIBDL) #Not used HAVE_MEMORY_H check_cxx_source_compiles( "namespace Outer { namespace Inner { int i = 0; } } using namespace Outer::Inner; int main() { return i; }" CPPUNIT_HAVE_NAMESPACES) check_cxx_source_compiles( "#include class Base { public: Base() {} virtual int f() { return 0; } }; class Derived : public Base { public: Derived() {} virtual int f() { return 1; } }; int main() { Derived d; Base * ptr = &d; return typeid(*ptr) == typeid(Derived); }" CPPUNIT_HAVE_RTTI) check_library_exists(dl shl_load "" CPPUNIT_HAVE_SHL_LOAD) #Not used HAVE_STDINT_H #Not used HAVE_STDLIB_H #Not used HAVE_STRINGS_H #Not used HAVE_STRING_H #Not used HAVE_SYS_STAT_H #Not used HAVE_SYS_TYPES_H #Not used HAVE_UNISTD_H #Not used PACKAGE #Not used PACKAGE_BUGREPORT #Not used PACKAGE_NAME #Not used PACKAGE_STRING #Not used PACKAGE_TARNAME #Not used PACKAGE_VERSION #Not used STDC_HEADERS check_include_file_cxx(typeinfo CPPUNIT_USE_TYPEINFO_NAME) #CPPUNIT_VERSION ok configure_file(config/config.h.cmake ${CMAKE_CURRENT_SOURCE_DIR}/include/cppunit/config-auto.h) ## set(cppunit_SRCS src/cppunit/AdditionalMessage.cpp src/cppunit/Asserter.cpp src/cppunit/BeOsDynamicLibraryManager.cpp src/cppunit/BriefTestProgressListener.cpp src/cppunit/CompilerOutputter.cpp src/cppunit/DefaultProtector.h src/cppunit/DefaultProtector.cpp src/cppunit/DynamicLibraryManager.cpp src/cppunit/DynamicLibraryManagerException.cpp src/cppunit/Exception.cpp src/cppunit/Message.cpp src/cppunit/PlugInManager.cpp src/cppunit/PlugInParameters.cpp src/cppunit/Protector.cpp src/cppunit/ProtectorChain.h src/cppunit/ProtectorContext.h src/cppunit/ProtectorChain.cpp src/cppunit/RepeatedTest.cpp src/cppunit/ShlDynamicLibraryManager.cpp src/cppunit/SourceLine.cpp src/cppunit/StringTools.cpp src/cppunit/SynchronizedObject.cpp src/cppunit/Test.cpp src/cppunit/TestAssert.cpp src/cppunit/TestCase.cpp src/cppunit/TestCaseDecorator.cpp src/cppunit/TestComposite.cpp src/cppunit/TestDecorator.cpp src/cppunit/TestFactoryRegistry.cpp src/cppunit/TestFailure.cpp src/cppunit/TestLeaf.cpp src/cppunit/TestNamer.cpp src/cppunit/TestPath.cpp src/cppunit/TestPlugInDefaultImpl.cpp src/cppunit/TestResult.cpp src/cppunit/TestResultCollector.cpp src/cppunit/TestRunner.cpp src/cppunit/TestSetUp.cpp src/cppunit/TestSuccessListener.cpp src/cppunit/TestSuite.cpp src/cppunit/TestSuiteBuilderContext.cpp src/cppunit/TextOutputter.cpp src/cppunit/TextTestProgressListener.cpp src/cppunit/TextTestResult.cpp src/cppunit/TextTestRunner.cpp src/cppunit/TypeInfoHelper.cpp src/cppunit/UnixDynamicLibraryManager.cpp src/cppunit/Win32DynamicLibraryManager.cpp src/cppunit/XmlDocument.cpp src/cppunit/XmlElement.cpp src/cppunit/XmlOutputter.cpp src/cppunit/XmlOutputterHook.cpp ) add_library(cppunit SHARED ${cppunit_SRCS}) target_include_directories(cppunit - PUBLIC $ - $ + PUBLIC "$" + "$" ) target_compile_definitions(cppunit PRIVATE CPPUNIT_BUILD_DLL) set_target_properties(cppunit PROPERTIES VERSION ${${PROJECT_NAME}_VERSION} SOVERSION ${${PROJECT_NAME}_VERSION} ) set(${PROJECT_NAME}_LIBRARIES cppunit) # Install support install(TARGETS ${${PROJECT_NAME}_LIBRARIES} EXPORT ${PROJECT_NAME}_TARGETS LIBRARY DESTINATION lib ARCHIVE DESTINATION lib RUNTIME DESTINATION bin ) install(DIRECTORY include/cppunit DESTINATION include ) # Config files configure_file( ${PROJECT_NAME}Config.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake @ONLY ) configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}ConfigVersion.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake @ONLY ) export(EXPORT ${PROJECT_NAME}_TARGETS FILE ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Targets.cmake ) set(config_package_location lib/cmake/${PROJECT_NAME}) install(EXPORT ${PROJECT_NAME}_TARGETS FILE ${PROJECT_NAME}Targets.cmake DESTINATION ${config_package_location} ) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake" "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake" DESTINATION ${config_package_location} ) diff --git a/CMakeExternals/GLEWCMakeLists.txt b/CMakeExternals/GLEWCMakeLists.txt index 81d44291b1..9d40357764 100644 --- a/CMakeExternals/GLEWCMakeLists.txt +++ b/CMakeExternals/GLEWCMakeLists.txt @@ -1,67 +1,67 @@ cmake_minimum_required(VERSION 2.8.4) project(GLEW) set(${PROJECT_NAME}_MAJOR_VERSION 1) set(${PROJECT_NAME}_MINOR_VERSION 10) set(${PROJECT_NAME}_PATCH_VERSION 0) set(${PROJECT_NAME}_VERSION ${${PROJECT_NAME}_MAJOR_VERSION}.${${PROJECT_NAME}_MINOR_VERSION}.${${PROJECT_NAME}_PATCH_VERSION}) find_package(OpenGL REQUIRED) if(BUILD_SHARED_LIBS) add_definitions(-DGLEW_BUILD) else() add_definitions(-DGLEW_STATIC) endif() add_library(glew src/glew.c) set(include_dirs ${OPENGL_INCLUDE_DIR} ${GLEW_SOURCE_DIR}/include) target_include_directories(glew - PUBLIC $ - $ + PUBLIC "$" + "$" ) target_link_libraries(glew PUBLIC ${OPENGL_gl_LIBRARY}) set_target_properties(glew PROPERTIES SOVERSION ${${PROJECT_NAME}_VERSION}) set(${PROJECT_NAME}_LIBRARIES glew) # Install support install(TARGETS ${${PROJECT_NAME}_LIBRARIES} EXPORT ${PROJECT_NAME}_TARGETS LIBRARY DESTINATION lib ARCHIVE DESTINATION lib RUNTIME DESTINATION bin ) install(DIRECTORY include/GL DESTINATION include ) # Config files configure_file( ${PROJECT_NAME}Config.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake @ONLY ) configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}ConfigVersion.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake @ONLY ) export(EXPORT ${PROJECT_NAME}_TARGETS FILE ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Targets.cmake ) set(config_package_location lib/cmake/${PROJECT_NAME}) install(EXPORT ${PROJECT_NAME}_TARGETS FILE ${PROJECT_NAME}Targets.cmake DESTINATION ${config_package_location} ) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake" "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake" DESTINATION ${config_package_location} ) diff --git a/CMakeExternals/GLUTCMakeLists.txt b/CMakeExternals/GLUTCMakeLists.txt index dc7ae8c29b..7b68069423 100644 --- a/CMakeExternals/GLUTCMakeLists.txt +++ b/CMakeExternals/GLUTCMakeLists.txt @@ -1,385 +1,385 @@ cmake_minimum_required(VERSION 2.8.4) project(GLUT) set(${PROJECT_NAME}_MAJOR_VERSION 2) set(${PROJECT_NAME}_MINOR_VERSION 8) set(${PROJECT_NAME}_PATCH_VERSION 1) set(${PROJECT_NAME}_VERSION ${${PROJECT_NAME}_MAJOR_VERSION}.${${PROJECT_NAME}_MINOR_VERSION}.${${PROJECT_NAME}_PATCH_VERSION}) find_package(OpenGL REQUIRED) set(_include_dirs ${OPENGL_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/include ${CMAKE_CURRENT_BINARY_DIR} ) if(NOT BUILD_SHARED_LIBS) add_definitions(-DFREEGLUT_STATIC) endif() if(MSVC) add_definitions(-D_CRT_SECURE_NO_WARNINGS) endif() add_definitions(-DHAVE_CONFIG_H) find_file(ERRNO_H errno.h) find_file(FCNTL_H fcntl.h) find_file(LIMITS_H limits.h) find_file(STDBOOL_H stdbool.h) find_file(SYS_IOCTL_H sys/ioctl.h) find_file(SYS_PARAM_H sys/param.h) find_file(SYS_TIME_H sys/time.h) find_file(SYS_TYPES_H sys/types.h) find_file(UNISTD_H unistd.h) find_file(USBHID_H usbhid.h) find_file(X11_EXTENSIONS_XF86VMODE_H X11/extensions/xf86vmode.h) find_file(X11_EXTENSIONS_XINPUT2_H X11/extensions/XInput2.h) find_file(X11_EXTENSIONS_XRANDR_H X11/extensions/Xrandr.h) mark_as_advanced( ERRNO_H FCNTL_H LIMITS_H STDBOOL_H SYS_IOCTL_H SYS_PARAM_H SYS_TIME_H SYS_TYPES_H UNISTD_H USBHID_H X11_EXTENSIONS_XF86VMODE_H X11_EXTENSIONS_XINPUT2_H X11_EXTENSIONS_XRANDR_H) if (SYS_TIME_H) file(WRITE ${CMAKE_SOURCE_DIR}/CMake/gettimeofday.c "#include int main() { struct timeval tv; gettimeofday(&tv, 0); return 0; } ") try_compile(GETTIMEOFDAY ${CMAKE_BINARY_DIR}/CMake/gettimeofday ${CMAKE_SOURCE_DIR}/CMake/gettimeofday.c) endif() file(WRITE ${CMAKE_SOURCE_DIR}/CMake/vprintf.c "#include #include void test_vprintf(const char *format, ...) { va_list args; va_start(args, format); vprintf(format, args); va_end(args); } int main() { test_vprintf(\"%d %s\\n\", 42, \"forty-two\"); return 0; } ") try_compile(VPRINTF ${CMAKE_BINARY_DIR}/CMake/vprintf ${CMAKE_SOURCE_DIR}/CMake/vprintf.c) if(NOT VPRINTF) file(WRITE ${CMAKE_SOURCE_DIR}/CMake/_doprnt.c "#include int main() { int args[] = { 23, 42 }; _doprnt(\"%d %d\\n\", args, stdout); return 0; } ") try_compile(_DOPRNT ${CMAKE_BINARY_DIR}/CMake/_doprnt ${CMAKE_SOURCE_DIR}/CMake/_doprnt.c) endif() file(WRITE ${CMAKE_SOURCE_DIR}/CMake/vfprintf.c "#include #include void test_vfprintf(FILE *stream, const char *format, ...) { va_list args; va_start(args, format); vfprintf(stream, format, args); va_end(args); } int main() { test_vfprintf(stdout, \"%d %s\\n\", 42, \"forty-two\"); return 0; } ") try_compile(VFPRINTF ${CMAKE_BINARY_DIR}/CMake/vfprintf ${CMAKE_SOURCE_DIR}/CMake/vfprintf.c) if(SYS_TIME_H AND SYS_TYPES_H) file(WRITE ${CMAKE_SOURCE_DIR}/CMake/time_with_sys_time.c "#include #include #include int main() { if ((struct tm *)0) return 0; return 0; } ") try_compile(TIME_WITH_SYS_TIME ${CMAKE_BINARY_DIR}/CMake/time_with_sys_time ${CMAKE_SOURCE_DIR}/CMake/time_with_sys_time.c) endif() file(STRINGS ${CMAKE_SOURCE_DIR}/config.h.in config_h_in NEWLINE_CONSUME) if(_DOPRNT) string(REPLACE "#undef HAVE__DOPRNT" "#define HAVE__DOPRNT 1" config_h_in "${config_h_in}") endif() if(ERRNO_H) string(REPLACE "#undef HAVE_ERRNO_H" "#define HAVE_ERRNO_H 1" config_h_in "${config_h_in}") endif() if(FCNTL_H) string(REPLACE "#undef HAVE_FCNTL_H" "#define HAVE_FCNTL_H 1" config_h_in "${config_h_in}") endif() if(GETTIMEOFDAY) string(REPLACE "#undef HAVE_GETTIMEOFDAY" "#define HAVE_GETTIMEOFDAY 1" config_h_in "${config_h_in}") endif() if(LIMITS_H) string(REPLACE "#undef HAVE_LIMITS_H" "#define HAVE_LIMITS_H 1" config_h_in "${config_h_in}") endif() if(SYS_IOCTL_H) string(REPLACE "#undef HAVE_SYS_IOCTL_H" "#define HAVE_SYS_IOCTL_H 1" config_h_in "${config_h_in}") endif() if(SYS_PARAM_H) string(REPLACE "#undef HAVE_SYS_PARAM_H" "#define HAVE_SYS_PARAM_H 1" config_h_in "${config_h_in}") endif() if(SYS_TIME_H) string(REPLACE "#undef HAVE_SYS_TIME_H" "#define HAVE_SYS_TIME_H 1" config_h_in "${config_h_in}") endif() if(SYS_TYPES_H) string(REPLACE "#undef HAVE_SYS_TYPES_H" "#define HAVE_SYS_TYPES_H 1" config_h_in "${config_h_in}") endif() if(UNISTD_H) string(REPLACE "#undef HAVE_UNISTD_H" "#define HAVE_UNISTD_H 1" config_h_in "${config_h_in}") endif() if(USBHID_H) string(REPLACE "#undef HAVE_USBHID_H" "#define HAVE_USBHID_H 1" config_h_in "${config_h_in}") endif() if(VFPRINTF) string(REPLACE "#undef HAVE_VFPRINTF" "#define HAVE_VFPRINTF 1" config_h_in "${config_h_in}") endif() if(X11_EXTENSIONS_XF86VMODE_H) string(REPLACE "#undef HAVE_X11_EXTENSIONS_XF86VMODE_H" "#define HAVE_X11_EXTENSIONS_XF86VMODE_H 1" config_h_in "${config_h_in}") endif() if(X11_EXTENSIONS_XINPUT2_H) string(REPLACE "#undef HAVE_X11_EXTENSIONS_XINPUT2_H" "#define HAVE_X11_EXTENSIONS_XINPUT2_H 1" config_h_in "${config_h_in}") endif() if(X11_EXTENSIONS_XRANDR_H) string(REPLACE "#undef HAVE_X11_EXTENSIONS_XRANDR_H" "#define HAVE_X11_EXTENSIONS_XRANDR_H 1" config_h_in "${config_h_in}") endif() if(TIME_WITH_SYS_TIME) string(REPLACE "#undef TIME_WITH_SYS_TIME" "#define TIME_WITH_SYS_TIME 1" config_h_in "${config_h_in}") endif() file(WRITE ${CMAKE_BINARY_DIR}/config.h "${config_h_in}") if(STDBOOL_H) file(APPEND ${CMAKE_BINARY_DIR}/config.h "\n#define HAVE_STDBOOL_H 1\n") endif() set(freeglut_HEADERS include/GL/freeglut.h include/GL/freeglut_ext.h include/GL/freeglut_std.h include/GL/glut.h src/freeglut_internal.h src/freeglut_teapot_data.h ) set(freeglut_SOURCES src/freeglut_callbacks.c src/freeglut_cursor.c src/freeglut_display.c src/freeglut_ext.c src/freeglut_font.c src/freeglut_font_data.c src/freeglut_gamemode.c src/freeglut_geometry.c src/freeglut_glutfont_definitions.c src/freeglut_init.c src/freeglut_input_devices.c src/freeglut_joystick.c src/freeglut_main.c src/freeglut_menu.c src/freeglut_misc.c src/freeglut_overlay.c src/freeglut_spaceball.c src/freeglut_state.c src/freeglut_stroke_mono_roman.c src/freeglut_stroke_roman.c src/freeglut_structure.c src/freeglut_teapot.c src/freeglut_videoresize.c src/freeglut_window.c ) if(UNIX) list(APPEND freeglut_SOURCES src/freeglut_xinput.c) endif() add_library(freeglut ${freeglut_HEADERS} ${freeglut_SOURCES}) target_include_directories(freeglut - PUBLIC $ - $ + PUBLIC "$" + "$" ) target_link_libraries(freeglut PUBLIC ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY}) set_target_properties(freeglut PROPERTIES DEFINE_SYMBOL FREEGLUT_EXPORTS SOVERSION ${${PROJECT_NAME}_VERSION}) set(${PROJECT_NAME}_LIBRARIES freeglut) # Install support install(TARGETS ${${PROJECT_NAME}_LIBRARIES} EXPORT ${PROJECT_NAME}_TARGETS LIBRARY DESTINATION lib ARCHIVE DESTINATION lib RUNTIME DESTINATION bin ) install(DIRECTORY include/GL DESTINATION include FILES_MATCHING PATTERN "*.h" ) # Config files configure_file( ${PROJECT_NAME}Config.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake @ONLY ) configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}ConfigVersion.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake @ONLY ) export(EXPORT ${PROJECT_NAME}_TARGETS FILE ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Targets.cmake ) set(config_package_location lib/cmake/${PROJECT_NAME}) install(EXPORT ${PROJECT_NAME}_TARGETS FILE ${PROJECT_NAME}Targets.cmake DESTINATION ${config_package_location} ) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake" "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake" DESTINATION ${config_package_location} )