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.

20 lines
1008 B

  1. string(REPLACE " " ";" CMAKE_CXX_FLAGS_AS_LIST ${CMAKE_CXX_FLAGS})
  2. ExternalProject_Add(
  3. cpptemplate
  4. DOWNLOAD_COMMAND ""
  5. SOURCE_DIR ${STORM_3RDPARTY_SOURCE_DIR}/cpptemplate
  6. PREFIX ${STORM_3RDPARTY_BINARY_DIR}/cpptemplate
  7. CONFIGURE_COMMAND ""
  8. BUILD_COMMAND ${CMAKE_CXX_COMPILER} -c ${CMAKE_CXX_FLAGS_AS_LIST} -fPIC -I${Boost_INCLUDE_DIRS} -I${STORM_3RDPARTY_SOURCE_DIR}/utf8_v2_3_4/source ${STORM_3RDPARTY_SOURCE_DIR}/cpptemplate/cpptempl.cpp -o ${STORM_3RDPARTY_BINARY_DIR}/cpptemplate/cpptemplate${STATIC_EXT}
  9. INSTALL_COMMAND ""
  10. BUILD_IN_SOURCE 0
  11. LOG_BUILD ON
  12. )
  13. set(CPPTEMPLATE_INCLUDE_DIR ${STORM_3RDPARTY_SOURCE_DIR}/cpptemplate)
  14. set(CPPTEMPLATE_STATIC_LIBRARY ${STORM_3RDPARTY_BINARY_DIR}/cpptemplate/cpptemplate${STATIC_EXT})
  15. list(APPEND STORM_LINK_LIBRARIES ${CPPTEMPLATE_STATIC_LIBRARY})
  16. add_dependencies(resources cpptemplate)
  17. message(STATUS "Storm - Linking with cpptemplate.")
  18. include_directories(${CPPTEMPLATE_INCLUDE_DIR})