-
Notifications
You must be signed in to change notification settings - Fork 48
/
CMakeLists.txt
60 lines (49 loc) · 1.17 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
57
58
59
60
cmake_minimum_required(VERSION 3.12)
project(WFM_all)
include(CheckLibraryExists)
set(WFM_all_VERSION_MAJOR 1)
set(WFM_all_VERSION_MINOR 1)
set(WFM_all_VERSION_PATCH 0)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
configure_file(
config/config.h.in
config/config.h
)
configure_file(
config/config.sh.in
config/config.sh
)
include_directories(
"${PROJECT_BINARY_DIR}/config"
"${PROJECT_SOURCE_DIR}/include"
"${PROJECT_SOURCE_DIR}/include/dep"
"${PROJECT_SOURCE_DIR}/src/otfcc"
)
file(GLOB_RECURSE src_otfcc src/otfcc/**.c)
file(GLOB_RECURSE src_otfcc_extern src/otfcc-extern/**.c)
add_executable(otfccdump
${src_otfcc}
${src_otfcc_extern}
src/otfcc-driver/otfccdump.c
src/otfcc-driver/stopwatch.c
)
add_executable(otfccbuild
${src_otfcc}
${src_otfcc_extern}
src/otfcc-driver/otfccbuild.c
src/otfcc-driver/stopwatch.c
)
add_executable(merge-otd
src/merger/merge-name.cpp
src/merger/merge-otd.cpp
src/merger/ps2tt.cpp
src/merger/tt2ps.cpp
src/nowide/iostream.cpp
)
check_library_exists(m sin "" require_lib_m)
if (require_lib_m)
target_link_libraries(otfccdump m)
target_link_libraries(otfccbuild m)
target_link_libraries(merge-otd m)
endif (require_lib_m)