gluon/package/libgluonutil/src/CMakeLists.txt

16 lines
443 B
CMake
Raw Normal View History

2016-02-02 05:38:03 +00:00
cmake_minimum_required(VERSION 2.6)
project(libgluonutil C)
set_property(DIRECTORY PROPERTY COMPILE_DEFINITIONS _GNU_SOURCE)
add_library(gluonutil SHARED libgluonutil.c)
set_property(TARGET gluonutil PROPERTY COMPILE_FLAGS "-Wall -std=c99")
target_link_libraries(gluonutil json-c)
2016-02-02 05:38:03 +00:00
install(TARGETS gluonutil
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
2016-02-02 05:38:03 +00:00
)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/libgluonutil.h DESTINATION include)