mirror of
https://git.planet-casio.com/Lephenixnoir/libprof.git
synced 2024-12-12 20:53:41 +01:00
21 lines
681 B
CMake
21 lines
681 B
CMake
# Build system for the libprof library for gint
|
|
|
|
cmake_minimum_required(VERSION 3.15)
|
|
project(libprof VERSION 2.4.0 LANGUAGES C)
|
|
find_package(Gint 2.4.0 REQUIRED)
|
|
|
|
configure_file(libprof.h libprof.h)
|
|
|
|
set(NAME "prof-${FXSDK_PLATFORM}")
|
|
add_library(${NAME} STATIC libprof.c)
|
|
|
|
target_compile_options(${NAME} PUBLIC -Wall -Wextra -std=c11 -Os)
|
|
target_include_directories(${NAME} PUBLIC "${CMAKE_CURRENT_BINARY_DIR}")
|
|
target_link_libraries(${NAME} Gint::Gint)
|
|
|
|
install(TARGETS ${NAME}
|
|
DESTINATION "${FXSDK_LIB}")
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libprof.h"
|
|
DESTINATION "${FXSDK_INCLUDE}")
|
|
install(FILES cmake/FindLibProf.cmake
|
|
DESTINATION "${FXSDK_CMAKE_MODULE_PATH}")
|