18 lines
526 B
CMake
18 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")
|
|
|