forked from vsg-dev/vsgXchange
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
56 lines (45 loc) · 1.35 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
52
53
54
55
56
cmake_minimum_required(VERSION 3.7)
project(vsgXchange
VERSION 0.0.1
DESCRIPTION "VulkanSceneGraph 3rd party data integration library"
LANGUAGES CXX C
)
set(VSGXCHANGE_SOVERSION 0)
SET(VSGXCHANGE_RELEASE_CANDIDATE 0)
# set the use of C++17 globally as all examples require it
set(CMAKE_CXX_STANDARD 17)
# Find Vulkan and the VSG
if (VULKAN_SDK)
set(ENV{VULKAN_SDK} ${VULKAN_SDK})
endif()
set(VSG_MIN_VERSION 0.2.1)
find_package(vsg ${VSG_MIN_VERSION} REQUIRED)
# for generated cmake support files
set(FIND_DEPENDENCY ${FIND_DEPENDENCY} "find_dependency(vsg ${VSG_MIN_VERSION} REQUIRED)")
vsg_setup_build_vars()
vsg_setup_dir_vars()
vsg_add_target_clang_format(
FILES
${CMAKE_SOURCE_DIR}/include/*/*.h
${CMAKE_SOURCE_DIR}/src/*/*.h
${CMAKE_SOURCE_DIR}/src/*/*.cpp
${CMAKE_SOURCE_DIR}/applications/*/*.h
${CMAKE_SOURCE_DIR}/applications/*/*.cpp
EXCLUDES
${CMAKE_SOURCE_DIR}/src/stbi/stb_image.h
${CMAKE_SOURCE_DIR}/src/dds/tinyddsloader.h
)
vsg_add_target_clobber()
vsg_add_target_docs(
FILES
${CMAKE_SOURCE_DIR}/include
)
vsg_add_target_uninstall()
vsg_add_option_maintainer(
PREFIX ${PROJECT_NAME}
RCLEVEL ${VSGXCHANGE_RELEASE_CANDIDATE}
)
# source directory for main vsgXchange library
add_subdirectory(src)
add_subdirectory(applications/vsgconv)
vsg_add_feature_summary()