summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMickael Savinaud <savmickael@users.noreply.github.com>2013-03-03 17:55:35 +0000
committerMickael Savinaud <savmickael@users.noreply.github.com>2013-03-03 17:55:35 +0000
commite7bc30b409fc864d7bcfec60254c4404a0c69c72 (patch)
treef4706818b6d1a7edc9859b311b23709114d1be81 /CMakeLists.txt
parentefaefa21fc6840df42894d746f314a6df899e3e1 (diff)
[trunk] split into two config files config options related to the lib and to the application.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt16
1 files changed, 7 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4c7c825c..483cc242 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -180,7 +180,7 @@ if(CMAKE_COMPILER_IS_GNUCC)
endif()
#-----------------------------------------------------------------------------
-# opj_config.h generation (1/2)
+# opj_config.h generation
include (${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake)
CHECK_INCLUDE_FILE("strings.h" HAVE_STRINGS_H)
CHECK_INCLUDE_FILE("inttypes.h" HAVE_INTTYPES_H)
@@ -197,6 +197,12 @@ CHECK_INCLUDE_FILE("unistd.h" HAVE_UNISTD_H)
include(TestLargeFiles)
OPJ_TEST_LARGE_FILES(OPJ_HAVE_LARGEFILES)
+configure_file(
+ ${CMAKE_CURRENT_SOURCE_DIR}/src/lib/openjp2/opj_config.h.cmake.in
+ ${CMAKE_CURRENT_BINARY_DIR}/src/lib/openjp2/opj_config.h
+ @ONLY
+ )
+
#-----------------------------------------------------------------------------
# Build Library
add_subdirectory(src)
@@ -227,14 +233,6 @@ endif ()
add_subdirectory(wrapping)
#-----------------------------------------------------------------------------
-# opj_config.h generation (2/2)
-configure_file(
- ${CMAKE_CURRENT_SOURCE_DIR}/src/lib/openjp2/opj_config.h.cmake.in
- ${CMAKE_CURRENT_BINARY_DIR}/src/lib/openjp2/opj_config.h
- @ONLY
- )
-
-#-----------------------------------------------------------------------------
# Build DOCUMENTATION (not in ALL target and only if Doxygen is found)
option(BUILD_DOC "Build the HTML documentation (with doxygen if available)." OFF)
if(BUILD_DOC)