This repository has been archived by the owner on Jan 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathCMakeLists.txt
50 lines (41 loc) · 1.78 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
# portmidi
# Roger B. Dannenberg
# 20 Sep 2009
cmake_minimum_required(VERSION 2.6)
# this does not seem to work for xcode:
set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING
"Semicolon-separate list of supported configuration types" FORCE)
# Clear out the built-in C++ compiler and link flags for each of the
# unused configurations.
set(CMAKE_CXX_FLAGS_MINSIZEREL "" CACHE INTERNAL "Unused")
set(CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL "" CACHE INTERNAL "Unused")
set(CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL "" CACHE INTERNAL "Unused")
set(CMAKE_EXE_LINKER_FLAGS_MINSIZEREL "" CACHE INTERNAL "Unused")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "" CACHE INTERNAL "Unused")
set(CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO "" CACHE INTERNAL "Unused")
set(CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO "" CACHE INTERNAL "Unused")
set(CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO "" CACHE INTERNAL "Unused")
set(CMAKE_OSX_ARCHITECTURES i386 ppc CACHE STRING "do not build for 64-bit" FORCE)
PROJECT(portmidi)
include_directories(pm_common porttime)
add_subdirectory(pm_common)
add_subdirectory(pm_test)
# Cannot figure out how to make an xcode Java application with CMake
# add_subdirectory(pm_java)
# ---- Just for reference, here's what I had in pm_java/CMakeLists.txt ---
## pm_java
#
#PROJECT(pmdefaults Java)
#
#set(JAVA_SRC jportmidi/JPortMidiException.java
# jportmidi/JPortMidi.java
# jportmidi/JPortMidiApi.java
# pmdefaults/PmDefaults.java
# pmdefaults/PmDefaultsFrame.java)
#
#set(MACOSX_BUNDLE_ICON_FILE pmdefaults/pmdefaults.icns)
#set_source_files_properties(pmdefaults/pmdefaults.icns PROPERTIES
# MACOSX_PACKAGE_LOCATION Resources)
#add_executable(PmDefaults MACOSX_BUNDLE ${JAVA_SRC})
#set_target_properties(PmDefaults PROPERTIES LINKER_LANGUAGE Java)
#