Skip to content
Snippets Groups Projects
Commit b21f707e authored by ilor's avatar ilor
Browse files

Conditional build of Swig and Poliqarp

parent cd1e0c11
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,8 @@ IF(NOT CMAKE_BUILD_TYPE) ...@@ -10,6 +10,8 @@ IF(NOT CMAKE_BUILD_TYPE)
FORCE) FORCE)
ENDIF(NOT CMAKE_BUILD_TYPE) ENDIF(NOT CMAKE_BUILD_TYPE)
set(CORPUS2_BUILD_SWIG True CACHE BOOL "Build SWIG Python wrappers" FORCE)
set(CORPUS2_BUILD_POLIQARP True CACHE BOOL "Build Poliqarp library and wraper" FORCE)
if(CMAKE_COMPILER_IS_GNUCXX) if(CMAKE_COMPILER_IS_GNUCXX)
# Set our own default flags at first run. # Set our own default flags at first run.
...@@ -66,7 +68,23 @@ add_subdirectory(libpwrutils) ...@@ -66,7 +68,23 @@ add_subdirectory(libpwrutils)
add_subdirectory(libcorpus2) add_subdirectory(libcorpus2)
add_subdirectory(corpus2tools) add_subdirectory(corpus2tools)
add_subdirectory(tests) add_subdirectory(tests)
add_subdirectory(swig)
if(CORPUS2_BUILD_POLIQARP)
add_subdirectory(poliqarp-library) add_subdirectory(poliqarp-library)
add_subdirectory(poliqarp) add_subdirectory(poliqarp)
else()
message(STATUS "Not building Poliqarp library and wrapper")
endif(CORPUS2_BUILD_POLIQARP)
if(CORPUS2_BUILD_SWIG)
FIND_PACKAGE(SWIG)
if(SWIG_FOUND)
message(STATUS "SWIG found, Python wrappers will be built")
add_subdirectory(swig)
else()
message(STATUS "WARNING: SWIG not found, Python wrappers will not be built")
endif(SWIG_FOUND)
else()
message(STATUS "Not building SWIG Python wrappers")
endif(CORPUS2_BUILD_SWIG)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment