1234567891011121314151617181920212223242526272829303132333435363738 |
- cmake_minimum_required (VERSION 2.8)
- project(objsim)
- if(CWDEBUG)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DCWDEBUG")
- endif(CWDEBUG)
- set(CXX_COMPILER "/usr/bin/g++-4.9")
- include_directories("${PROJECT_SOURCE_DIR}/src")
- include_directories("${PROJECT_SOURCE_DIR}/src/external/vector")
- include_directories("${PROJECT_SOURCE_DIR}/src/external/anyoption")
- include_directories("${PROJECT_SOURCE_DIR}/src/external/rng_thread")
- include_directories("${PROJECT_SOURCE_DIR}/src/external/tinyxml")
- find_package(Qt4 REQUIRED) # find and setup Qt4 for this project
- include(${QT_USE_FILE})
- ADD_DEFINITIONS(${QT_DEFINITIONS})
- set (CMAKE_INSTALL_PREFIX "${PROJECT_SOURCE_DIR}/install")
- set (CXXTEST_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/src/external/cxxtest/)
- set(CUSTOM_CMAKE_DIR "${PROJECT_SOURCE_DIR}/cmake")
- set(CUSTOM_SCRIPT_DIR "${PROJECT_SOURCE_DIR}/scripts")
- include("${CUSTOM_CMAKE_DIR}/install_sim.cmake")
- include("${CUSTOM_CMAKE_DIR}/progversion.cmake")
- include("${CUSTOM_CMAKE_DIR}/versionheader.cmake")
- include(CTest)
- add_subdirectory(src)
- add_subdirectory(scripts)
- add_subdirectory(minimal)
- add_subdirectory(simulations)
- add_subdirectory(mycxxtests)
|