-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
51 lines (39 loc) · 1.1 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
cmake_minimum_required(VERSION 3.8.2)
project(utilitize VERSION 1.0.0)
set(HEADERS
include/AudioFile.hpp
include/ByteArr.h
include/ZCharScanner.h
include/ZFile.h
)
set(SRCS
src/ByteArr.cpp
src/ZCharScanner.cpp
src/ZFile.cpp
)
# Tell CMake to create the helloworld executable
add_library(utilitize ${SRCS} ${HEADERS})
include_directories(include)
export(TARGETS utilitize NAMESPACE utilitize:: FILE utilitizeTargets.cmake)
install(FILES ${HEADER} DESTINATION include)
install(DIRECTORY include/
DESTINATION include/)
install(TARGETS utilitize
EXPORT utilitizeTargets
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
INCLUDES DESTINATION include
)
include(CMakePackageConfigHelpers)
write_basic_package_version_file(
utilitizeConfigVersion.cmake
VERSION ${PACKAGE_VERSION}
COMPATIBILITY AnyNewerVersion
)
install(EXPORT utilitizeTargets
FILE utilitizeTargets.cmake
NAMESPACE utilitize::
DESTINATION lib/cmake/utilitize
)
configure_file(utilitizeConfig.cmake.in utilitizeConfig.cmake @ONLY)