-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
44 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
cmake_minimum_required(VERSION 3.16)
project(JDTools)
add_executable(JDTools
JDTools/Convert800to990.cpp
JDTools/Convert800toVST.cpp
JDTools/Convert990to800.cpp
JDTools/ConvertVSTto800.cpp
JDTools/InputFile.cpp
JDTools/JDTools.cpp
JDTools/SVZ.cpp
JDTools/InputFile.hpp
JDTools/JD-08.hpp
JDTools/JD-800.hpp
JDTools/JD-990.hpp
JDTools/JDTools.hpp
JDTools/PrecomputedTablesVST.hpp
JDTools/PrintPatchData.cpp
JDTools/SVZ.hpp
JDTools/Utils.hpp
JDTools/WaveformNames.hpp
JDTools/miniz.c
JDTools/miniz.h
JDTools/resource.h)
if(WIN32)
target_sources(JDTools PRIVATE
JDTools/JDTools.manifest
JDTools/JDTools.rc)
endif()
if(MSVC)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:DebugDLL>")
if(CMAKE_CXX_FLAGS MATCHES "/W[0-4]")
string(REGEX REPLACE "/W[0-4]" "/W4" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4")
endif()
elseif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
endif()
set_property(TARGET JDTools PROPERTY CXX_STANDARD 20)