From 6df36ce8d3e6b23e4c758fe8ecd0ede9f9b814b4 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Fri, 19 Aug 2022 16:38:35 +0200 Subject: [PATCH] cmake: install in the fxSDK sysroot --- CMakeLists.txt | 4 ++-- cmake/FindLibProf.cmake | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4f6f540..9b7f10b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,8 +14,8 @@ target_include_directories(${NAME} PUBLIC "${CMAKE_CURRENT_BINARY_DIR}") target_link_libraries(${NAME} Gint::Gint) install(TARGETS ${NAME} - DESTINATION "${FXSDK_COMPILER_INSTALL}") + DESTINATION "${FXSDK_LIB}") install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libprof.h" - DESTINATION "${FXSDK_COMPILER_INSTALL}/include") + DESTINATION "${FXSDK_INCLUDE}") install(FILES cmake/FindLibProf.cmake DESTINATION "${FXSDK_CMAKE_MODULE_PATH}") diff --git a/cmake/FindLibProf.cmake b/cmake/FindLibProf.cmake index 52b91b0..918d929 100644 --- a/cmake/FindLibProf.cmake +++ b/cmake/FindLibProf.cmake @@ -3,7 +3,7 @@ include(FindPackageHandleStandardArgs) find_package(Gint 2.2.1 REQUIRED) -find_simple_library("libprof-${FXSDK_PLATFORM}.a" include/libprof.h +find_simple_library("libprof-${FXSDK_PLATFORM}.a" libprof.h "PROF_VERSION" PATH_VAR PROF_PATH VERSION_VAR PROF_VERSION) find_package_handle_standard_args(LibProf