]> git.treefish.org Git - seamulator.git/blob - src/CMakeLists.txt
Added gpl license
[seamulator.git] / src / CMakeLists.txt
1 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
2
3 find_package(OpenGL REQUIRED)
4 find_package(GLUT REQUIRED)
5 find_package(fftw3 REQUIRED)
6 find_package(Boost 1.40 COMPONENTS program_options REQUIRED)
7
8 include_directories(${seamulator_SOURCE_DIR}/include
9                     ${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS}
10                     ${FFTW_INCLUDES} ${Boost_INCLUDE_DIR})
11
12 add_executable(seamulator seamulator.cpp
13                           sea.cpp watersurface.cpp surfacepoint.cpp
14                           seaview.cpp)
15
16 target_link_libraries(seamulator ${OPENGL_LIBRARIES} ${GLUT_LIBRARY}
17                                  ${FFTW_LIBRARIES} ${Boost_LIBRARIES})