-
Notifications
You must be signed in to change notification settings - Fork 131
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
51 lines (43 loc) · 910 Bytes
/
CMakeLists.txt
File metadata and controls
51 lines (43 loc) · 910 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
sc_hash.cc
errordesc.cc
)
set(SC_CLUTILS_HDRS
dirobj.h
errordesc.h
gennodearray.h
gennode.h
gennodelist.h
sc_hash.h
Str.h
)
include_directories(
${SC_BINARY_DIR}/include
${CMAKE_CURRENT_SOURCE_DIR}
)
if(BUILD_SHARED_LIBS)
SC_ADDLIB(steputils SHARED SOURCES ${LIBSTEPUTILS_SRCS})
if(WIN32)
target_compile_definitions(steputils PRIVATE SC_UTILS_DLL_EXPORTS)
target_link_libraries(steputils shlwapi)
endif()
endif()
if(BUILD_STATIC_LIBS)
SC_ADDLIB(steputils-static STATIC SOURCES ${LIBSTEPUTILS_SRCS})
if(WIN32)
target_link_libraries(steputils-static shlwapi)
endif()
endif()
install(FILES ${SC_CLUTILS_HDRS}
DESTINATION ${INCLUDE_DIR}/stepcode/clutils)
# Local Variables:
# tab-width: 8
# mode: cmake
# indent-tabs-mode: t
# End:
# ex: shiftwidth=2 tabstop=8