forked from codelibs/libdxfrw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
32 lines (26 loc) · 920 Bytes
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
project(libdxfrw)
file(GLOB libdxfrw_sources src/*.cpp)
file(GLOB libdxfrw_headers include/*.h)
file(GLOB libdxfrw_intern_sources src/intern/*.cpp)
if(WIN32)
include_directories(vs2013/packages/libiconv.1.14.0.11/build/native/include)
link_directories(vs2013/packages/libiconv.1.14.0.11/build/native/lib)
endif()
include_directories(include)
add_library(dxfrw STATIC ${libdxfrw_sources} ${libdxfrw_intern_sources})
install(FILES ${libdxfrw_headers} DESTINATION include)
if(WIN32)
install(TARGETS dxfrw
CONFIGURATIONS Debug
LIBRARY DESTINATION Debug/lib
ARCHIVE DESTINATION Debug/lib)
install(TARGETS dxfrw
CONFIGURATIONS Release
LIBRARY DESTINATION Release/lib
ARCHIVE DESTINATION Release/lib)
else()
install(TARGETS dxfrw
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
endif()