wut/libraries/libgfd/CMakeLists.txt

16 lines
435 B
CMake
Raw Normal View History

2018-05-23 11:10:10 +01:00
cmake_minimum_required(VERSION 3.2)
project(libgfd)
2018-06-28 16:01:16 +01:00
add_library(gfd STATIC
src/gfd.c
include/gfd.h)
2018-05-23 11:10:10 +01:00
target_include_directories(gfd PRIVATE "../../include")
target_include_directories(gfd PUBLIC "include")
install(TARGETS gfd
ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")
install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/
DESTINATION "${CMAKE_INSTALL_PREFIX}/include"
FILES_MATCHING PATTERN "*.h*")