mirror of
https://git.planet-casio.com/Lephenixnoir/JustUI.git
synced 2024-12-26 19:43:39 +01:00
cmake: install the fxSDK sysroot
This commit is contained in:
parent
43ca998a14
commit
577e9ae20c
2 changed files with 7 additions and 8 deletions
|
@ -38,17 +38,16 @@ target_compile_options(${NAME} PUBLIC
|
|||
-Wall -Wextra -std=c11 -Os)
|
||||
target_include_directories(${NAME} PUBLIC
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/include"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/include"
|
||||
"${FXSDK_COMPILER_INSTALL}/include/openlibm")
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/include")
|
||||
target_link_libraries(${NAME}
|
||||
Gint::Gint -lopenlibm)
|
||||
Gint::Gint -lm)
|
||||
|
||||
install(TARGETS ${NAME}
|
||||
DESTINATION "${FXSDK_COMPILER_INSTALL}")
|
||||
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include"
|
||||
DESTINATION "${FXSDK_COMPILER_INSTALL}"
|
||||
DESTINATION "${FXSDK_LIB}")
|
||||
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/"
|
||||
DESTINATION "${FXSDK_INCLUDE}"
|
||||
FILES_MATCHING PATTERN "*.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
|
||||
DESTINATION "${FXSDK_CMAKE_MODULE_PATH}")
|
||||
|
|
|
@ -3,7 +3,7 @@ include(FindPackageHandleStandardArgs)
|
|||
|
||||
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)
|
||||
|
||||
find_package_handle_standard_args(JustUI
|
||||
|
|
Loading…
Reference in a new issue