]> git.treefish.org Git - seamulator.git/blobdiff - src/CMakeLists.txt
Modified command line options
[seamulator.git] / src / CMakeLists.txt
index 24c9ef6f6335552c305366f1841bac8e63fd1f94..f859744f9c4dd88e473db7e8b94b794e9660b0ca 100644 (file)
@@ -1,18 +1,17 @@
 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)
+find_package(Boost 1.40 COMPONENTS program_options REQUIRED)
 
 include_directories(${seamulator_SOURCE_DIR}/include
                    ${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS}
-                   ${FFTW_INCLUDES})
+                   ${FFTW_INCLUDES} ${Boost_INCLUDE_DIR})
 
 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} ${Boost_LIBRARIES})