Browse Source

storm export config improved

tempestpy_adaptions
sjunges 8 years ago
committed by Sebastian Junges
parent
commit
43d35a0f79
  1. 3
      resources/cmake/stormConfig.cmake.in
  2. 2
      src/storm/CMakeLists.txt

3
resources/cmake/stormConfig.cmake.in

@ -1,5 +1,6 @@
set(storm_VERSION @storm_VERSION@) set(storm_VERSION @storm_VERSION@)
get_filename_component(storm_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
@DEP_TARGETS@ @DEP_TARGETS@
@ -7,7 +8,7 @@ set(storm_VERSION @storm_VERSION@)
# Our library dependencies (contains definitions for IMPORTED targets) # Our library dependencies (contains definitions for IMPORTED targets)
if(NOT TARGET storm) if(NOT TARGET storm)
include("${PROJECT_BINARY_DIR}/stormTargets.cmake")
include("${storm_CMAKE_DIR}/stormTargets.cmake")
endif() endif()
@PACKAGE_INIT@ @PACKAGE_INIT@

2
src/storm/CMakeLists.txt

@ -40,7 +40,7 @@ add_library(storm SHARED ${STORM_LIB_SOURCES} ${STORM_LIB_HEADERS})
set_target_properties(storm PROPERTIES DEFINE_SYMBOL "") set_target_properties(storm PROPERTIES DEFINE_SYMBOL "")
add_dependencies(storm resources) add_dependencies(storm resources)
target_link_libraries(storm ${STORM_LINK_LIBRARIES}) target_link_libraries(storm ${STORM_LINK_LIBRARIES})
append(STORM_TARGETS storm CACHE STRING INTERNAL FORCE)
list(APPEND STORM_TARGETS storm CACHE STRING INTERNAL FORCE)
# Create storm. # Create storm.
add_executable(storm-main ${STORM_MAIN_SOURCES} ${STORM_MAIN_HEADERS}) add_executable(storm-main ${STORM_MAIN_SOURCES} ${STORM_MAIN_HEADERS})

Loading…
Cancel
Save