cmake: install in the fxSDK sysroot

This commit is contained in:
Lephenixnoir 2022-08-19 16:38:35 +02:00
parent 5b669e5529
commit 6df36ce8d3
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495
2 changed files with 3 additions and 3 deletions

View file

@ -14,8 +14,8 @@ target_include_directories(${NAME} PUBLIC "${CMAKE_CURRENT_BINARY_DIR}")
target_link_libraries(${NAME} Gint::Gint) target_link_libraries(${NAME} Gint::Gint)
install(TARGETS ${NAME} install(TARGETS ${NAME}
DESTINATION "${FXSDK_COMPILER_INSTALL}") DESTINATION "${FXSDK_LIB}")
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libprof.h" install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libprof.h"
DESTINATION "${FXSDK_COMPILER_INSTALL}/include") DESTINATION "${FXSDK_INCLUDE}")
install(FILES cmake/FindLibProf.cmake install(FILES cmake/FindLibProf.cmake
DESTINATION "${FXSDK_CMAKE_MODULE_PATH}") DESTINATION "${FXSDK_CMAKE_MODULE_PATH}")

View file

@ -3,7 +3,7 @@ include(FindPackageHandleStandardArgs)
find_package(Gint 2.2.1 REQUIRED) 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) "PROF_VERSION" PATH_VAR PROF_PATH VERSION_VAR PROF_VERSION)
find_package_handle_standard_args(LibProf find_package_handle_standard_args(LibProf