diff options
| author | Antonin Descampe <antonin@gmail.com> | 2013-10-30 08:59:23 +0000 |
|---|---|---|
| committer | Antonin Descampe <antonin@gmail.com> | 2013-10-30 08:59:23 +0000 |
| commit | 05f796d2fabd08dd1ab575dca6f59ca6bf18b70c (patch) | |
| tree | f63981c05e2e45afef8946f4ac0cf8fae5e5c7ea /CMakeLists.txt | |
| parent | bd8c91b37dc1b9345130d63582a063b59628b227 (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.txt | 10 |
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 |
