mirror of
https://git.planet-casio.com/Lephenixnoir/libprof.git
synced 2024-12-27 03:53:39 +01:00
17 lines
526 B
CMake
17 lines
526 B
CMake
# Build system for the libprof library for gint
|
|
|
|
cmake_minimum_required(VERSION 3.18)
|
|
project(libprof VERSION 2.2.1 LANGUAGES C)
|
|
|
|
find_package(Gint 2.2.1 REQUIRED)
|
|
|
|
add_compile_options(-Wall -Wextra -std=c11 -Os)
|
|
include_directories("${CMAKE_CURRENT_SOURCE_DIR}")
|
|
|
|
set(NAME "prof-${FXSDK_PLATFORM}")
|
|
add_library("${NAME}" STATIC libprof.c)
|
|
target_link_libraries("${NAME}" Gint::Gint)
|
|
|
|
install(TARGETS "${NAME}" DESTINATION "${FXSDK_COMPILER_INSTALL}")
|
|
install(FILES libprof.h DESTINATION "${FXSDK_COMPILER_INSTALL}/include")
|
|
|