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 638B

1234567891011121314151617
  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" "external/sol2" "/usr/include/luajit-2.0/")
  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. set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall")
  10. set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wall")
  11. add_executable(vtk ${SOURCES})
  12. set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
  13. find_package(Threads REQUIRED)
  14. target_link_libraries(vtk SDL2 GL GLEW GLU "luajit-5.1" ${CMAKE_THREAD_LIBS_INIT})