summaryrefslogtreecommitdiff
path: root/gpr/source/lib/tiny_jpeg/CMakeLists.txt
blob: 9d14921323eedd1db151c7588b34c01c78cb22c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# library
set( LIB_NAME tiny_jpeg )

# get source files
file( GLOB BASE_SRC_FILES "*.c" )

# get include files
file( GLOB BASE_INC_FILES "*.h" )

# get all source files
set( SRC_FILES ${BASE_SRC_FILES} )

# get all include files
set( INC_FILES ${BASE_INC_FILES} )


# 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 )