diff options
author | Richard <q@1bpm.net> | 2021-03-31 03:24:49 +0100 |
---|---|---|
committer | Richard <q@1bpm.net> | 2021-03-31 03:24:49 +0100 |
commit | 808af90b023ef4e665d3808a5b77aca927f9ec81 (patch) | |
tree | 6ff4a71a51477da2d90d32a1ab24b459fd0291d9 | |
parent | 79a083f28e9df04768151c8a916934716b4a2646 (diff) | |
download | csound-transforms-808af90b023ef4e665d3808a5b77aca927f9ec81.tar.gz csound-transforms-808af90b023ef4e665d3808a5b77aca927f9ec81.tar.bz2 csound-transforms-808af90b023ef4e665d3808a5b77aca927f9ec81.zip |
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | cmake/Modules/FindCsound.cmake | 17 |
2 files changed, 12 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..567609b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build/ diff --git a/cmake/Modules/FindCsound.cmake b/cmake/Modules/FindCsound.cmake index e55b269..b5631c9 100644 --- a/cmake/Modules/FindCsound.cmake +++ b/cmake/Modules/FindCsound.cmake @@ -5,17 +5,22 @@ # CSOUND_LIBRARIES - The libraries needed to use the Csound library. if(APPLE) -find_path(CSOUND_INCLUDE_DIR csound.h HINTS /Library/Frameworks/CsoundLib64.framework/Headers -"$ENV{HOME}/Library/Frameworks/CsoundLib64.framework/Headers") + find_path(CSOUND_INCLUDE_DIR csound.h HINTS /Library/Frameworks/CsoundLib64.framework/Headers + "$ENV{HOME}/Library/Frameworks/CsoundLib64.framework/Headers") +elseif(WIN32) + find_path(CSOUND_INCLUDE_DIR csound.h PATH_SUFFIXES csound + HINTS "c:\\Program Files\\Csound6_x64\\include") else() -find_path(CSOUND_INCLUDE_DIR csound.h PATH_SUFFIXES csound) + find_path(CSOUND_INCLUDE_DIR csound.h PATH_SUFFIXES csound) endif() if(APPLE) -find_library(CSOUND_LIBRARY NAMES CsoundLib64 HINTS /Library/Frameworks/CsoundLib64.framework/ -"$ENV{HOME}/Library/Frameworks/CsoundLib64.framework") + find_library(CSOUND_LIBRARY NAMES CsoundLib64 HINTS /Library/Frameworks/CsoundLib64.framework/ + "$ENV{HOME}/Library/Frameworks/CsoundLib64.framework") +elseif(WIN32) + find_library(CSOUND_LIBRARY NAMES csound64 HINTS "c:\\Program Files\\Csound6_x64\\lib") else() -find_library(CSOUND_LIBRARY NAMES csound64 csound) + find_library(CSOUND_LIBRARY NAMES csound64 csound) endif() include(FindPackageHandleStandardArgs) |