summaryrefslogtreecommitdiff
path: root/gpr/source/lib/gpr_sdk/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'gpr/source/lib/gpr_sdk/CMakeLists.txt')
-rw-r--r--gpr/source/lib/gpr_sdk/CMakeLists.txt44
1 files changed, 44 insertions, 0 deletions
diff --git a/gpr/source/lib/gpr_sdk/CMakeLists.txt b/gpr/source/lib/gpr_sdk/CMakeLists.txt
new file mode 100644
index 0000000..9ce99c4
--- /dev/null
+++ b/gpr/source/lib/gpr_sdk/CMakeLists.txt
@@ -0,0 +1,44 @@
+# library
+set( LIB_NAME gpr_sdk )
+
+# get source files
+file( GLOB SRC_FILES "private/*.cpp" "public/*.cpp" )
+
+# get include files
+file( GLOB INC_FILES "private/*.h" "public/*.h" )
+
+# add include files from other folders
+include_directories( "./public" )
+include_directories( "../common/private" )
+include_directories( "../common/public" )
+include_directories( "../dng_sdk" )
+include_directories( "../vc5_common" )
+
+if(EXISTS "${CMAKE_SOURCE_DIR}/source/lib/vc5_decoder")
+ include_directories( "../vc5_decoder" )
+ add_definitions("-DGPR_READING=1")
+else(EXISTS "${CMAKE_SOURCE_DIR}/source/lib/vc5_decoder")
+ add_definitions("-DGPR_READING=0")
+endif(EXISTS "${CMAKE_SOURCE_DIR}/source/lib/vc5_decoder")
+
+if(EXISTS "${CMAKE_SOURCE_DIR}/source/lib/vc5_encoder")
+ include_directories( "../vc5_encoder" )
+ add_definitions("-DGPR_WRITING=1")
+else(EXISTS "${CMAKE_SOURCE_DIR}/source/lib/vc5_encoder")
+ add_definitions("-DGPR_WRITING=0")
+endif(EXISTS "${CMAKE_SOURCE_DIR}/source/lib/vc5_encoder")
+
+if(EXISTS "${CMAKE_SOURCE_DIR}/source/lib/tiny_jpeg")
+ include_directories( "../tiny_jpeg" )
+ add_definitions("-DGPR_JPEG_AVAILABLE=1")
+else(EXISTS "${CMAKE_SOURCE_DIR}/source/lib/tiny_jpeg")
+ add_definitions("-DGPR_JPEG_AVAILABLE=0")
+endif(EXISTS "${CMAKE_SOURCE_DIR}/source/lib/tiny_jpeg")
+
+# library
+add_library( ${LIB_NAME} STATIC ${SRC_FILES} ${INC_FILES} )
+
+target_link_libraries( ${LIB_NAME} )
+
+# set the folder where to place the projects
+set_target_properties( ${LIB_NAME} PROPERTIES FOLDER lib )