CMakeLists.txt 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. cmake_minimum_required (VERSION 2.8)
  2. project(objsim)
  3. if(CWDEBUG)
  4. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DCWDEBUG")
  5. endif(CWDEBUG)
  6. set(CXX_COMPILER "/usr/bin/g++-4.9")
  7. include_directories("${PROJECT_SOURCE_DIR}/src")
  8. include_directories("${PROJECT_SOURCE_DIR}/src/external/vector")
  9. include_directories("${PROJECT_SOURCE_DIR}/src/external/anyoption")
  10. include_directories("${PROJECT_SOURCE_DIR}/src/external/rng_thread")
  11. include_directories("${PROJECT_SOURCE_DIR}/src/external/tinyxml")
  12. find_package(Qt4 REQUIRED) # find and setup Qt4 for this project
  13. include(${QT_USE_FILE})
  14. ADD_DEFINITIONS(${QT_DEFINITIONS})
  15. set (CMAKE_INSTALL_PREFIX "${PROJECT_SOURCE_DIR}/install")
  16. set (CXXTEST_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/src/external/cxxtest/)
  17. set(CUSTOM_CMAKE_DIR "${PROJECT_SOURCE_DIR}/cmake")
  18. set(CUSTOM_SCRIPT_DIR "${PROJECT_SOURCE_DIR}/scripts")
  19. include("${CUSTOM_CMAKE_DIR}/install_sim.cmake")
  20. include("${CUSTOM_CMAKE_DIR}/progversion.cmake")
  21. include("${CUSTOM_CMAKE_DIR}/versionheader.cmake")
  22. include(CTest)
  23. add_subdirectory(src)
  24. add_subdirectory(scripts)
  25. add_subdirectory(minimal)
  26. add_subdirectory(simulations)
  27. add_subdirectory(mycxxtests)