CMakeLists.txt 323 B

1234567891011121314151617
  1. set(INCLUDE_DIRECTORIES
  2. ${CMAKE_SOURCE_DIR}
  3. ${ROOT_INCLUDE_DIRS}
  4. )
  5. include_directories(${INCLUDE_DIRECTORIES})
  6. SET_SOURCE_FILES_PROPERTIES( test.C PROPERTIES LANGUAGE CXX )
  7. set(INCLUDE_LIBRARIES
  8. ${ROOT_LIBRARIES}
  9. )
  10. # Compile executable
  11. add_executable(test test.C)
  12. target_link_libraries(test ${INCLUDE_LIBRARIES})