]> git.treefish.org Git - seamulator.git/blobdiff - CMakeLists.txt
Distribute dots in space
[seamulator.git] / CMakeLists.txt
index 986edd410546422456b809c55a9484c70ce283fa..64f8a81753e671aac9e475c9a92a447ccb29f4d4 100644 (file)
@@ -2,20 +2,6 @@ cmake_minimum_required(VERSION 2.8)
 
 project(seamulator)
 
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
+set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake_modules")
 
-set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}")
-
-find_package(OpenGL REQUIRED)
-find_package(GLUT REQUIRED)
-find_package(fftw3 REQUIRED)
-
-include_directories(${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS}
-                   ${FFTW_INCLUDES})
-
-add_executable(seamulator seamulator.cpp
-                         sea.cpp watersurface.cpp surfacepoint.cpp
-                         seaview.cpp)
-
-target_link_libraries(seamulator ${OPENGL_LIBRARIES} ${GLUT_LIBRARY}
-                                ${FFTW_LIBRARIES} ${FFTW_LIBRARIES_THREADS})
+add_subdirectory(src)