Blame view

CMakeLists.txt 898 Bytes
6bf618a1   David Mayerich   initial commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  #Specify the version being used aswell as the language
  cmake_minimum_required(VERSION 2.8.11)
  
  #Name your project here
  project(shview)
  
  #set the module directory
  set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}")
  
  #find the STIM library
  find_package(STIM REQUIRED)
  
  find_package(OpenGL REQUIRED)
  find_package(GLUT REQUIRED)
  
f8a38243   David Mayerich   made changes to s...
16
17
18
  #find BOOST
  find_package(Boost REQUIRED)
  
6bf618a1   David Mayerich   initial commit
19
20
21
22
23
24
25
  #find the pthreads package
  find_package(Threads)
  
  include_directories(
  					${STIM_INCLUDE_DIRS}
  					${GLUT_INCLUDE_DIR}
  					${OpenGL_INCLUDE_DIRS}
f8a38243   David Mayerich   made changes to s...
26
  					${Boost_INCLUDE_DIR}
6bf618a1   David Mayerich   initial commit
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
  					)
  
  #Assign source files to the appropriate variables
  file(GLOB SRC_CPP "*.cpp")
  file(GLOB SRC_H "*.h")
  
  #create an executable file
  add_executable(shview
  				${SRC_H} 
  				${SRC_CPP} 
  				)
  
  #set the link libraries
  target_link_libraries(shview
  					  ${CMAKE_THREAD_LIBS_INIT} 
  					  ${OPENGL_LIBRARIES}
  					  ${GLUT_LIBRARY}
  		  )