cmake: install the fxSDK sysroot

This commit is contained in:
Lephenixnoir 2022-08-21 17:37:45 +02:00
parent 43ca998a14
commit 577e9ae20c
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495
2 changed files with 7 additions and 8 deletions

View file

@ -38,17 +38,16 @@ target_compile_options(${NAME} PUBLIC
-Wall -Wextra -std=c11 -Os) -Wall -Wextra -std=c11 -Os)
target_include_directories(${NAME} PUBLIC target_include_directories(${NAME} PUBLIC
"${CMAKE_CURRENT_SOURCE_DIR}/include" "${CMAKE_CURRENT_SOURCE_DIR}/include"
"${CMAKE_CURRENT_BINARY_DIR}/include" "${CMAKE_CURRENT_BINARY_DIR}/include")
"${FXSDK_COMPILER_INSTALL}/include/openlibm")
target_link_libraries(${NAME} target_link_libraries(${NAME}
Gint::Gint -lopenlibm) Gint::Gint -lm)
install(TARGETS ${NAME} install(TARGETS ${NAME}
DESTINATION "${FXSDK_COMPILER_INSTALL}") DESTINATION "${FXSDK_LIB}")
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include" install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/"
DESTINATION "${FXSDK_COMPILER_INSTALL}" DESTINATION "${FXSDK_INCLUDE}"
FILES_MATCHING PATTERN "*.h") FILES_MATCHING PATTERN "*.h")
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/include/justui/config.h" install(FILES "${CMAKE_CURRENT_BINARY_DIR}/include/justui/config.h"
DESTINATION "${FXSDK_COMPILER_INSTALL}/include/justui") DESTINATION "${FXSDK_INCLUDE}/justui")
install(FILES cmake/FindJustUI.cmake install(FILES cmake/FindJustUI.cmake
DESTINATION "${FXSDK_CMAKE_MODULE_PATH}") DESTINATION "${FXSDK_CMAKE_MODULE_PATH}")

View file

@ -3,7 +3,7 @@ include(FindPackageHandleStandardArgs)
find_package(Gint 2.1 REQUIRED) find_package(Gint 2.1 REQUIRED)
find_simple_library("libjustui-${FXSDK_PLATFORM}.a" include/justui/config.h find_simple_library("libjustui-${FXSDK_PLATFORM}.a" justui/config.h
"J_VERSION" PATH_VAR J_PATH VERSION_VAR J_VERSION) "J_VERSION" PATH_VAR J_PATH VERSION_VAR J_VERSION)
find_package_handle_standard_args(JustUI find_package_handle_standard_args(JustUI