gplugin/gplugin

Lots of tweaking and stuff
feature/gjs-cc
2015-09-29, Gary Kramlich
c0bdb3b0512c
Lots of tweaking and stuff
option(
BUILD_GJS
"Whether or not to build the GJS JavaScript plugin loader"
"On"
)
if(BUILD_GJS)
remove_definitions(
-Wextra
-std=c99
)
set(GPLUGIN_GJS_SOURCES
gplugin-gjs-core.cc
gplugin-gjs-loader.cc
gplugin-gjs-plugin.cc
)
set(GPLUGIN_GJS_HEADERS
gplugin-gjs-loader.h
gplugin-gjs-plugin.h
)
pkg_check_modules(GJS REQUIRED gjs-1.0>=1.32.0)
add_library(gplugin-gjs MODULE
${GPLUGIN_GJS_SOURCES}
${GPLUGIN_GJS_HEADERS}
)
set_target_properties(gplugin-gjs PROPERTIES PREFIX "")
include_directories(${GJS_INCLUDE_DIRS})
target_link_libraries(gplugin-gjs
${GJS_LIBRARIES}
gplugin
)
install(TARGETS gplugin-gjs DESTINATION lib/gplugin)
endif(BUILD_GJS)
if(TESTING_ENABLED)
add_subdirectory(tests)
endif(TESTING_ENABLED)