summaryrefslogtreecommitdiff
path: root/gpr/source/lib/md5_lib/CMakeLists.txt
blob: 5782609ce634c8ddbaa00f0996f4725e5be379c5 (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 md5_lib )

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