forked from stepcode/stepcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
50 lines (42 loc) · 951 Bytes
/
CMakeLists.txt
File metadata and controls
50 lines (42 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
set(LIBSTEPUTILS_SRCS
Str.cc
dirobj.cc
gennode.cc
gennodelist.cc
gennodearray.cc
scl_hash.cc
errordesc.cc
)
SET(LIBSTEPUTILS_PRIVATE_HDRS
dirobj.h
errordesc.h
gennodearray.h
gennode.h
gennodelist.h
scldir.h
scl_hash.h
stat.h
Str.h
str_list.h
)
include_directories(
${SCL_SOURCE_DIR}/src/base
${SCL_BINARY_DIR}/include
${CMAKE_CURRENT_SOURCE_DIR}
)
if (MSVC OR BORLAND)
add_definitions( -DSCL_BASE_DLL_IMPORTS )
add_definitions( -DSCL_UTILS_DLL_EXPORTS )
endif()
SCL_ADDLIB(steputils "${LIBSTEPUTILS_SRCS}" "base")
IF(MINGW)
TARGET_LINK_LIBRARIES(steputils shlwapi.lib)
ENDIF(MINGW)
IF(MSVC OR BORLAND)
TARGET_LINK_LIBRARIES(steputils shlwapi.lib)
ENDIF()
if(APPLE)
if(SCL_BUILD_SHARED_LIBS)
set_target_properties(steputils PROPERTIES LINK_FLAGS "-flat_namespace -undefined suppress")
endif(SCL_BUILD_SHARED_LIBS)
endif(APPLE)