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

62 lines
1.1 KiB
CMake
Raw Normal View History

2015-04-21 23:12:18 +01:00
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)
2014-12-14 12:05:43 +00:00
set( MYDDAS_SOURCES
myddas_initialization.c
myddas_shared.c
myddas_statistics.c
myddas_top_level.c
2016-01-03 02:06:09 +00:00
)
2014-12-14 12:05:43 +00:00
2016-04-05 08:09:39 +01:00
include_directories (. sqlite3)
set( MYDDAS_HEADERS
myddas.h
myddas_statistics.h
myddas_statistics_structs.h
myddas_structs.h
myddas_top_level.c
2016-01-03 02:06:09 +00:00
myddas_types.h )
set( MYDDAS_UTIL_SOURCES
myddas_util.c
myddas_initialization.c )
2016-04-05 08:09:39 +01:00
set_property( GLOBAL
APPEND PROPERTY COMPILE_DEFINITIONS USE_MYDDAS=1)
# internal MYDDAS flag, used to preprocess ypp files.
set (MYDDAS_FLAGS -DUSE_MYDDAS=1)
add_subdirectory (mysql)
add_subdirectory (odbc)
add_subdirectory (postgres)
add_subdirectory (sqlite3)
2016-04-05 08:09:39 +01:00
add_subdirectory (pl)
2016-04-05 08:09:39 +01:00
add_library (myddas OBJECT
${MYDDAS_SOURCES}
${MYDDAS_UTIL_SOURCES}
2015-11-05 17:06:15 +00:00
${MYDDAS_HEADERS}
)
2016-04-05 08:09:39 +01:00
add_dependencies(myddas plmyddas)
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)