-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
81 lines (69 loc) · 2.81 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
cmake_minimum_required(VERSION 3.9)
project(doShell)
include_directories(${CMAKE_SOURCE_DIR})
set (VERSION_MAJOR "0")
set (VERSION_MINOR "0")
set (VERSION_PATCH "1")
# configure config.h to be generated from config.h.in,
# with injected version number
configure_file ("doShell/config.h.in" "doShell/config.h")
set(CMAKE_CXX_STANDARD 17)
if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
# Use libc++ explicitly so we can compile for
# CMAKE_OSX_DEPLOYMENT_TARGET=10.7 or 10.8
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
endif()
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/../bin/mac)
else()
# Linux
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin/linux)
endif()
add_executable(dosh
doShell/main.cpp
doShell/app/app.cc
doShell/app/app.h
doShell/app/app_command.cc
doShell/app/app_command.h
doShell/app/app_help.cc
doShell/app/app_help.h
doShell/dosh/s2s_transpiler.cc
doShell/dosh/s2s_transpiler.h
doShell/dosh/shell_command/shell_command_clipboard.cc
doShell/dosh/shell_command/shell_command_clipboard.h
doShell/dosh/shell_command/shell_command_string.cc
doShell/dosh/shell_command/shell_command_string.h
doShell/dosh/shell_command/shell_command_url.cc
doShell/dosh/shell_command/shell_command_url.h
doShell/dosh/transpile/transpile_browser.cc
doShell/dosh/transpile/transpile_browser.h
doShell/dosh/transpile/transpile_clipboard.cc
doShell/dosh/transpile/transpile_clipboard.h
doShell/dosh/transpile/transpile_dialog.cc
doShell/dosh/transpile/transpile_dialog.h
doShell/dosh/transpile/transpile_keystrokes.cc
doShell/dosh/transpile/transpile_keystrokes.h
doShell/dosh/transpile/transpile_macro.cc
doShell/dosh/transpile/transpile_macro.h
doShell/dosh/transpile/transpile_platform.cc
doShell/dosh/transpile/transpile_platform.h
doShell/dosh/transpile/transpile_random.cc
doShell/dosh/transpile/transpile_random.h
doShell/dosh/transpile/transpile_string.cc
doShell/dosh/transpile/transpile_string.h
doShell/dosh/transpile/transpile_terminal.cc
doShell/dosh/transpile/transpile_terminal.h
doShell/dosh/transpile/transpile_url.cc
doShell/dosh/transpile/transpile_url.h
doShell/helper/helper_cli.cc
doShell/helper/helper_cli.h
doShell/helper/helper_file.cc
doShell/helper/helper_file.h
doShell/helper/helper_json.cc
doShell/helper/helper_json.h
doShell/helper/helper_string.cc
doShell/helper/helper_string.h
)
add_subdirectory(vendor/clip/)
include_directories(../vendor/clip/)
target_link_libraries(dosh clip)