mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Link scxcore to ps and include headers
This commit is contained in:
+5
-3
@@ -4,7 +4,7 @@ project(monad_native)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
||||
|
||||
#include gtest
|
||||
include_directories(../ext-src/gtest/fused-src impl)
|
||||
include_directories(../ext-src/gtest/fused-src ../ext-src/pal/include impl)
|
||||
link_directories(${monad_native_BINARY_DIR})
|
||||
|
||||
# source file definitions
|
||||
@@ -17,6 +17,10 @@ SET(HOST_CMDLINE_SOURCE_FILES host/cmdline/main.cpp ${HOST_COMMON_SOURCE_FILES})
|
||||
|
||||
# target definitions
|
||||
add_library(ps SHARED ${LIB_SOURCE_FILES})
|
||||
add_library(scxcore STATIC IMPORTED GLOBAL)
|
||||
set_property(TARGET scxcore PROPERTY IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/../ext-src/pal/lib/libscxcore.a)
|
||||
target_link_libraries(ps scxcore)
|
||||
|
||||
add_executable(monad_native ${SOURCE_FILES} ${TEST_SOURCE_FILES})
|
||||
add_executable(host_cmdline ${HOST_CMDLINE_SOURCE_FILES})
|
||||
|
||||
@@ -28,5 +32,3 @@ target_link_libraries(host_cmdline dl icuuc)
|
||||
# target specific include directories
|
||||
target_include_directories(monad_native PRIVATE host)
|
||||
target_include_directories(host_cmdline PRIVATE host)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user