]> git.treefish.org Git - seamulator.git/commitdiff
Moved cmake module
authorAlexander Schmidt <alex@treefish.org>
Wed, 20 Jul 2016 20:37:28 +0000 (22:37 +0200)
committerAlexander Schmidt <alex@treefish.org>
Wed, 20 Jul 2016 20:37:28 +0000 (22:37 +0200)
CMakeLists.txt
Findfftw3.cmake [deleted file]
cmake_modules/Findfftw3.cmake [new file with mode: 0644]
src/CMakeLists.txt

index 5fff49e42ec3b0617a09a83f620c79570092effb..64f8a81753e671aac9e475c9a92a447ccb29f4d4 100644 (file)
@@ -2,4 +2,6 @@ cmake_minimum_required(VERSION 2.8)
 
 project(seamulator)
 
+set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake_modules")
+
 add_subdirectory(src)
diff --git a/Findfftw3.cmake b/Findfftw3.cmake
deleted file mode 100644 (file)
index 00c3401..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-# - Find FFTW
-# Find the native FFTW includes and library
-#
-#  FFTW_INCLUDES    - where to find fftw3.h
-#  FFTW_LIBRARIES   - List of libraries when using FFTW.
-#  FFTW_FOUND       - True if FFTW found.
-
-if (FFTW_INCLUDES)
-  # Already in cache, be silent
-  set (FFTW_FIND_QUIETLY TRUE)
-endif (FFTW_INCLUDES)
-
-find_path (FFTW_INCLUDES fftw3.h)
-
-find_library (FFTW_LIBRARIES NAMES fftw3)
-
-# handle the QUIETLY and REQUIRED arguments and set FFTW_FOUND to TRUE if
-# all listed variables are TRUE
-include (FindPackageHandleStandardArgs)
-find_package_handle_standard_args (FFTW DEFAULT_MSG FFTW_LIBRARIES FFTW_INCLUDES)
-
-mark_as_advanced (FFTW_LIBRARIES FFTW_INCLUDES)
diff --git a/cmake_modules/Findfftw3.cmake b/cmake_modules/Findfftw3.cmake
new file mode 100644 (file)
index 0000000..00c3401
--- /dev/null
@@ -0,0 +1,22 @@
+# - Find FFTW
+# Find the native FFTW includes and library
+#
+#  FFTW_INCLUDES    - where to find fftw3.h
+#  FFTW_LIBRARIES   - List of libraries when using FFTW.
+#  FFTW_FOUND       - True if FFTW found.
+
+if (FFTW_INCLUDES)
+  # Already in cache, be silent
+  set (FFTW_FIND_QUIETLY TRUE)
+endif (FFTW_INCLUDES)
+
+find_path (FFTW_INCLUDES fftw3.h)
+
+find_library (FFTW_LIBRARIES NAMES fftw3)
+
+# handle the QUIETLY and REQUIRED arguments and set FFTW_FOUND to TRUE if
+# all listed variables are TRUE
+include (FindPackageHandleStandardArgs)
+find_package_handle_standard_args (FFTW DEFAULT_MSG FFTW_LIBRARIES FFTW_INCLUDES)
+
+mark_as_advanced (FFTW_LIBRARIES FFTW_INCLUDES)
index 24c9ef6f6335552c305366f1841bac8e63fd1f94..75b9bcba13caea14690753ff769801c9272ca71f 100644 (file)
@@ -1,7 +1,5 @@
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
 
-set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}")
-
 find_package(OpenGL REQUIRED)
 find_package(GLUT REQUIRED)
 find_package(fftw3 REQUIRED)