#------------------------------------------------------------------- # This file is part of the CMake build system for Scol # # You can use for free the content of this file. #------------------------------------------------------------------- ############################################################ # Lib2dGTK plugin CMakeList ############################################################ # WARNING : NOT FINISHED !!! project(lib2dgtk) set(LIBRARY_OUTPUT_PATH lib/${CMAKE_BUILD_TYPE}) # define header files for scol include_directories ("${Scol_SOURCE_DIR}/hscol") # GTK find_package (PkgConfig REQUIRED) pkg_check_modules (GTK2 REQUIRED gtk+-2.0) include_directories (${GTK2_INCLUDE_DIRS}) link_directories (${GTK2_LIBRARY_DIRS}) add_definitions (${GTK2_CFLAGS_OTHER}) # define header files for the library set (LIB2DGTK_HEADER_FILES include/main.h ) # define header files for lib2dgtk set (LIB2DGTK_RSC_FILES sqlite3/sqlite3.h sqlite3/sqlite3ext.h sqlite3/sqlite3.c sqlite3/shell.c ) # define source files for the library set (LIB2DGTK_SOURCE_FILES src/main.c ) add_definitions (-DOPTI_P4) add_library (lib2dgtk ${Scol_LIB_TYPE} ${LIB2DGTK_HEADER_FILES} ${LIB2DGTK_RSC_FILES} ${LIB2DGTK_SOURCE_FILES} ) add_dependencies (lib2dgtk kernel) #set_target_properties (lib2dgtk PROPERTIES VERSION ${Scol_VERSION} SOVERSION ${Scol_VERSION_MAJOR}) scol_config_plugin (sqlite3) #install (FILES ${SQLITE3_HEADER_FILES} DESTINATION include/SCOL/plugins/lib2dgtk)