Skip to content

Commit

Permalink
Next Try to Build
Browse files Browse the repository at this point in the history
  • Loading branch information
DerKleinePunk committed Feb 25, 2024
1 parent a717791 commit 1da4ae0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,14 @@ endif()

if(LIB_DART_DEBUG)
target_link_libraries(dart_dll debug ${LIB_DART_DEBUG})
else()
target_link_libraries(dart_dll debug ${LIB_DART_RELEASE})
endif()

target_link_libraries(dart_dll optimized ${LIB_DART_RELEASE})

MESSAGE(STATUS "debug ${LIB_DART_DEBUG} optimized ${LIB_DART_RELEASE}")

install(TARGETS dart_dll
EXPORT dart_dllTargets
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
Expand All @@ -98,5 +102,5 @@ install(TARGETS dart_dll

target_include_directories(dart_dll PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include/dart_dll> # <prefix>/include/mylib
$<INSTALL_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> # <prefix>/include/mylib
)

0 comments on commit 1da4ae0

Please sign in to comment.