This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/myddas/CMakeLists.txt

66 lines
1.4 KiB
CMake
Raw Normal View History

SET(CMAKE_FIND_FRAMEWORK LAST)
SET(CMAKE_FIND_APPBUNDLE LAST)
# Be sure to also update these in Makefile!
set(SO_MAJOR 1)
set(SO_MINOR 0)
set(SO_PATCH 0)
set(MYDDAS_SOURCES
myddas_initialization.c
myddas_shared.c
myddas_statistics.c
myddas_top_level.c
)
2016-04-05 08:09:39 +01:00
2019-01-09 09:32:09 +00:00
set_property(DIRECTORY
APPEND PROPERTY
INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/sqlite3)
2016-04-05 08:09:39 +01:00
set(MYDDAS_HEADERS
myddas.h
myddas_statistics.h
myddas_statistics_structs.h
myddas_structs.h
myddas_types.h)
set(MYDDAS_UTIL_SOURCES
myddas_util.c
myddas_initialization.c)
2016-04-05 08:09:39 +01:00
add_subdirectory(sqlite3)
2019-04-07 00:25:10 +01:00
if(MYSQL_FOUND)
2018-02-14 14:17:57 +00:00
add_subdirectory(mysql)
2019-04-07 00:25:10 +01:00
endif()
if (ODBC_FOUND)
2018-02-14 14:17:57 +00:00
add_subdirectory(odbc)
2019-04-07 00:25:10 +01:00
endif()
if (POSTGRES_FOUND)
2018-02-14 14:17:57 +00:00
add_subdirectory(postgres)
2019-04-07 00:25:10 +01:00
endif()
2019-01-09 13:59:58 +00:00
set(CXX_SWIG_OUTDIR ${CMAKE_BINARY_DIR}/packages/swig/android)
add_component(myddas
${MYDDAS_SOURCES}
${MYDDAS_UTIL_SOURCES}
${MYDDAS_HEADERS}
)
2016-08-30 14:29:40 +01:00
SET_PROPERTY(SOURCE ${MYDDAS_SOURCES}
${MYDDAS_UTIL_SOURCES}
${MYDDAS_HEADERS} PROPERTY COMPILE_DEFINITIONS YAP_KERNEL=1 )
add_subdirectory(pl)
2017-11-18 00:04:42 +00:00
MY_set_target_properties(myddas PROPERTIES
POSITION_INDEPENDENT_CODE ON
)
cmake_dependent_option(USE_MYDDAS_Stats
"enable the MYDDAS library statistics support" OFF
USE_MYDDAS OFF)
2019-04-07 00:25:10 +01:00
add_dependencies(myddas MYDDAS_PL)