#------------------------------------------------------------------- # This file is part of the CMake build system for Scol # # The contents of this file are placed in the public domain. Feel # free to make use of it in any way you like. #------------------------------------------------------------------- ############################################################ # Nonin plugin CMakeList ############################################################ PROJECT(scolsql) # define header and source files for the library set (SQL_HEADER_FILES # None! ) if (Scol_STATIC) set (SQL_HEADER_FILES ${SQL_HEADER_FILES} include/loadScolSql.h) endif() set (SQL_SOURCE_FILES src/sqldb.cpp ) scol_include_plugin("SQL" "${PROJECT_SOURCE_DIR}/include" "loadScolSql.h") # Add definition for P4 optimizations, warnings removal. add_definitions(-DOPTI_P4 -D_CRT_SECURE_NO_WARNINGS) # Linking to external libs. if (WIN32) set(LIBRARIES odbc32.lib) else() set(LIBRARIES) endif() # setup Scol scolsql plugin target add_library(scolsql ${Scol_LIB_TYPE} ${SQL_HEADER_FILES} ${SQL_SOURCE_FILES} ) add_dependencies(scolsql kernel) if (ANDROID) set(Scol_ANDROID_DEPENDENCIES ${Scol_ANDROID_DEPENDENCIES} scolsql CACHE INTERNAL "" FORCE) message(STATUS "[${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE}] Scol_ANDROID_DEPENDENCIES: ${Scol_ANDROID_DEPENDENCIES} -- added scolsql to android project deps") endif() # set the dll version. #set_target_properties(scolsql PROPERTIES VERSION ${Scol_VERSION} SOVERSION ${Scol_VERSION_MAJOR}) target_link_libraries(scolsql ${LIBRARIES}) # install Scol scolsql scol_config_plugin(scolsql) #install(FILES ${SQL_HEADER_FILES} DESTINATION include/SCOL/plugins/scolsql)