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.
This commit is contained in:
Luis Ibanez
2010-09-01 00:52:26 +00:00
parent 86864a2f6c
commit 26e8f3fd28
3 changed files with 44 additions and 10 deletions

View File

@@ -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