-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
40 lines (32 loc) · 1.5 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
cmake_minimum_required(VERSION 3.8)
project(niceshade)
set(CMAKE_C_STANDARD 99)
set(CMAKE_CXX_STANDARD 17)
if (WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP")
endif()
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options("-fms-extensions")
endif()
include("${CMAKE_CURRENT_LIST_DIR}/build-utils.cmake")
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/metadata-parser)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/libniceshade)
nmk_binary(NAME niceshade
SRCS ${CMAKE_CURRENT_LIST_DIR}/cli-tool/metadata-file-writer.h
${CMAKE_CURRENT_LIST_DIR}/cli-tool/metadata-file-writer.cpp
${CMAKE_CURRENT_LIST_DIR}/cli-tool/header-file-writer.h
${CMAKE_CURRENT_LIST_DIR}/cli-tool/niceshade.cpp
${CMAKE_CURRENT_LIST_DIR}/cli-tool/target-list.h
${CMAKE_CURRENT_LIST_DIR}/cli-tool/file-utils.h
${CMAKE_CURRENT_LIST_DIR}/cli-tool/file-utils.cpp
PVT_INCLUDES ${CMAKE_CURRENT_LIST_DIR}/../library/include
${CMAKE_CURRENT_LIST_DIR}
DEPS libniceshade "$<IF:$<BOOL:${WIN32}>,,dl>"
OUTPUT_DIR ${CMAKE_CURRENT_LIST_DIR})
nmk_binary(NAME display_metadata
SRCS ${CMAKE_CURRENT_LIST_DIR}/samples/display-metadata.cpp
${CMAKE_CURRENT_LIST_DIR}/cli-tool/file-utils.cpp
DEPS metadata-parser
PVT_INCLUDES ${CMAKE_CURRENT_LIST_DIR}
OUTPUT_DIR ${CMAKE_CURRENT_LIST_DIR}/samples)