summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2013-10-30 08:59:23 +0000
committerAntonin Descampe <antonin@gmail.com>2013-10-30 08:59:23 +0000
commit05f796d2fabd08dd1ab575dca6f59ca6bf18b70c (patch)
treef63981c05e2e45afef8946f4ac0cf8fae5e5c7ea /CMakeLists.txt
parentbd8c91b37dc1b9345130d63582a063b59628b227 (diff)
trunk: fixed cmake config so as to be able to link opj_jpip_server with FCGI.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3b86f061..72f985f6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -213,7 +213,15 @@ OPJ_TEST_LARGE_FILES(OPJ_HAVE_LARGEFILES)
#-----------------------------------------------------------------------------
# Build Library
-add_subdirectory(src)
+if(BUILD_JPIP_SERVER)
+ find_package(CURL REQUIRED)
+ find_package(FCGI REQUIRED)
+ find_package(Threads REQUIRED)
+ if(NOT CMAKE_USE_PTHREADS_INIT)
+ message(FATAL_ERROR "Only pthread are supported")
+ endif()
+endif()
+add_subdirectory(src/lib)
#-----------------------------------------------------------------------------
# Build Applications