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)
|
2018-01-19 05:23:29 +00:00
|
|
|
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
|
2018-01-19 05:23:29 +00:00
|
|
|
ARCHIVE DESTINATION lib
|
|
|
|
LIBRARY DESTINATION lib
|
2016-02-02 05:38:03 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/libgluonutil.h DESTINATION include)
|