Last active
October 26, 2017 22:48
-
-
Save d/b2af36025b85bdd4cec4a41d51a2df90 to your computer and use it in GitHub Desktop.
Postgres/Greenplum CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.0) | |
project(gpdb5 LANGUAGES C CXX) | |
include_directories(src/include) | |
include_directories(/usr/local/opt/openssl/include) | |
file(GLOB_RECURSE HEADERS | |
src/include/*.h | |
) | |
file(GLOB_RECURSE SRC_FILES | |
src/backend/*.c | |
src/port/*.c | |
src/common/*.c | |
src/backend/*.cpp | |
src/backend/*.y | |
) | |
add_executable( | |
postgres | |
${SRC_FILES} | |
${HEADERS} | |
) | |
file(GLOB_RECURSE LIBPQ_SOURCES | |
src/interfaces/libpq/*.h | |
src/interfaces/libpq/*.c | |
) | |
add_library( | |
pq | |
${LIBPQ_SOURCES} | |
) | |
target_include_directories( | |
pq | |
INTERFACE | |
src/interfaces/libpq | |
) | |
file(GLOB_RECURSE PSQL_FILES | |
src/bin/psql/*.c | |
src/bin/psql/*.h | |
) | |
add_executable( | |
psql | |
${PSQL_FILES} | |
${HEADERS} | |
) | |
target_link_libraries( | |
psql | |
pq | |
) | |
target_include_directories( | |
psql | |
PRIVATE | |
src/bin/pg_dump | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment