aboutsummaryrefslogtreecommitdiff
path: root/cmake/Modules
diff options
context:
space:
mode:
authorRichard <q@1bpm.net>2021-03-31 03:22:03 +0100
committerRichard <q@1bpm.net>2021-03-31 03:22:03 +0100
commitcd0c405e2ef310853d50d5706c3173f48ffe5d35 (patch)
tree99991d106e436de52e61ab862c364474846635c2 /cmake/Modules
parentb4158f460d59dcc440e46d011d432bebbd42f7f5 (diff)
downloadcsound-jstick-cd0c405e2ef310853d50d5706c3173f48ffe5d35.tar.gz
csound-jstick-cd0c405e2ef310853d50d5706c3173f48ffe5d35.tar.bz2
csound-jstick-cd0c405e2ef310853d50d5706c3173f48ffe5d35.zip
update FindCsound.cmake
Diffstat (limited to 'cmake/Modules')
-rw-r--r--cmake/Modules/FindCsound.cmake17
1 files changed, 11 insertions, 6 deletions
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)