Commit e8fd683923cc64e1ac7282f6a3ea937cd0f4468e

Authored by David Mayerich
1 parent 8d8c3ebd

minor name changes and Linux fixes - still not compiling on CUDA 7.5

Showing 2 changed files with 15 additions and 6 deletions   Show diff stats
1 #Specify the version being used aswell as the language 1 #Specify the version being used aswell as the language
2 cmake_minimum_required(VERSION 2.8) 2 cmake_minimum_required(VERSION 2.8)
3 #Name your project here 3 #Name your project here
4 -project(bimsym)  
5 -  
6 - 4 +project(bimsim)
7 5
8 #set the module directory 6 #set the module directory
9 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}") 7 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}")
@@ -23,7 +21,18 @@ find_package(STIM) @@ -23,7 +21,18 @@ find_package(STIM)
23 if ( MSVC ) 21 if ( MSVC )
24 SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG "${OUTPUT_DIRECTORY}") 22 SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG "${OUTPUT_DIRECTORY}")
25 SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE "${OUTPUT_DIRECTORY}") 23 SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE "${OUTPUT_DIRECTORY}")
  24 + SET( LIBRARY_OUTPUT_DIRECTORY_DEBUG "${OUTPUT_DIRECTORY}")
  25 + SET( LIBRARY_OUTPUT_DIRECTORY_RELEASE "${OUTPUT_DIRECTORY}")
  26 + add_definitions(-D_CRT_SECURE_NO_WARNINGS)
  27 + add_definitions(-D_SCL_SECURE_NO_WARNINGS)
26 endif ( MSVC ) 28 endif ( MSVC )
  29 +#MAYBE REMOVE-----------------
  30 +#set C++11 flags if using GCC
  31 +if( CMAKE_COMPILER_IS_GNUCC )
  32 + SET( CMAKE_CXX_FLAGS "-std=c++11")
  33 + SET( CUDA_NVCC_FLAGS "-std=c++11")
  34 +endif( CMAKE_COMPILER_IS_GNUCC )
  35 +#-----------------------------
27 36
28 #set the include directories 37 #set the include directories
29 include_directories( 38 include_directories(
@@ -36,13 +45,13 @@ include_directories( @@ -36,13 +45,13 @@ include_directories(
36 #SET(CUDA_NVCC_FLAGS_RELEASE ${CUDA_NVCC_FLAGS};/maxregcount=60) 45 #SET(CUDA_NVCC_FLAGS_RELEASE ${CUDA_NVCC_FLAGS};/maxregcount=60)
37 46
38 #create an executable 47 #create an executable
39 -cuda_add_executable(bimsym  
40 - bimsym.cu 48 +cuda_add_executable(bimsim
  49 + bimsim.cu
41 sources.h 50 sources.h
42 ) 51 )
43 52
44 #set the link libraries 53 #set the link libraries
45 -target_link_libraries(bimsym 54 +target_link_libraries(bimsim
46 ${CUDA_cufft_LIBRARY} 55 ${CUDA_cufft_LIBRARY}
47 ${CUDA_cublas_LIBRARY} 56 ${CUDA_cublas_LIBRARY}
48 ${OpenCV_LIBS} 57 ${OpenCV_LIBS}
bimsym.cu renamed to bimsim.cu