summaryrefslogtreecommitdiffhomepage
path: root/ArchiveEx/CMakeLists.txt
blob: 99ea25487dc4300e261f17651a88859ee2fdd880 (plain)
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
project(ArchiveEx)
add_library(
	ArchiveEx
	Archive.cpp
	)
target_include_directories(
	ArchiveEx
	PUBLIC .
	)
target_link_libraries(
	ArchiveEx
	PRIVATE Zlib::zlib
	)
add_executable(
	dat
	dat.cpp
	)
target_link_libraries(
	dat
	PRIVATE ArchiveEx
	)
if(WIN32)
	target_link_libraries(
		dat
		PRIVATE -l:libshlwapi.a
		)
endif()
install(
	TARGETS dat
	RUNTIME
	COMPONENT Runtime
	DESTINATION ${CMAKE_INSTALL_PREFIX}
	)