diff options
| author | Luis Ibanez <luis.ibanez@gmail.com> | 2010-09-01 00:52:26 +0000 |
|---|---|---|
| committer | Luis Ibanez <luis.ibanez@gmail.com> | 2010-09-01 00:52:26 +0000 |
| commit | 26e8f3fd28464754c0466e100aec5601f0769f9c (patch) | |
| tree | d7e0382f16b135cf2d84c237627b70c4153e8338 /mj2 | |
| parent | 86864a2f6c72d8fd0e0c5e09bb2ed4faa97391d2 (diff) | |
COMP: Fixing configuration for static builds. Fixing dependencies that several
executables have on getopt.c, convert.c and index.c.
Some refactoring is going to be required in order to have a cleaner
configuration process and make it easier to maintain.
Diffstat (limited to 'mj2')
| -rw-r--r-- | mj2/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mj2/CMakeLists.txt b/mj2/CMakeLists.txt index 1e884b82..c1fa4bf3 100644 --- a/mj2/CMakeLists.txt +++ b/mj2/CMakeLists.txt @@ -5,6 +5,12 @@ INCLUDE_DIRECTORIES( ${OPENJPEG_SOURCE_DIR}/libopenjpeg ) +# Do the proper thing when building static...if only there was configured +# headers or def files instead +IF(NOT BUILD_SHARED_LIBS) + ADD_DEFINITIONS(-DOPJ_STATIC) +ENDIF(NOT BUILD_SHARED_LIBS) + ADD_EXECUTABLE(frames_to_mj2 frames_to_mj2.c compat/getopt.c |
