You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 458B

123456789101112131415
  1. cmake_minimum_required (VERSION 3.6)
  2. project ("voxeltronik")
  3. file (GLOB_RECURSE SOURCES "src/*.cpp" "src/*.c")
  4. include_directories("./include" "libcuckoo/libcuckoo")
  5. set(CMAKE_CXX_STANDARD 17)
  6. set(CMAKE_CXX_FLAGS "-O2")
  7. set(CMAKE_C_FLAGS "-fPIC")
  8. set(CMAKE_EXPORT_COMPILE_COMMANDS on)
  9. add_executable(vtk ${SOURCES})
  10. set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
  11. find_package(Threads REQUIRED)
  12. target_link_libraries(vtk SDL2 GL GLEW GLU ${CMAKE_THREAD_LIBS_INIT})