Skip to content

Commit

Permalink
Fix build errors...
Browse files Browse the repository at this point in the history
  • Loading branch information
techanvil committed Dec 30, 2024
1 parent c527c59 commit efa05f5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
8 changes: 3 additions & 5 deletions src/ppui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,10 @@ add_library(ppui STATIC

target_include_directories(ppui
PUBLIC
.
PRIVATE
osinterface
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/osinterface
)

target_link_libraries(ppui PRIVATE osinterface)

# Add platform-specific sources and include paths
if(APPLE)
target_sources(ppui
Expand All @@ -123,6 +120,7 @@ if(APPLE)
${PROJECT_SOURCE_DIR}/src/tracker/cocoa
PUBLIC
cocoa
${CMAKE_CURRENT_SOURCE_DIR}/osinterface/posix
)
elseif(WIN32)
target_sources(ppui
Expand Down
12 changes: 11 additions & 1 deletion src/ppui/osinterface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,17 @@ if(APPLE)
posix/PPSystemString_POSIX.h
posix/PPSystem_POSIX.h
)
target_include_directories(osinterface PUBLIC posix)
target_include_directories(osinterface
PUBLIC
posix
${PROJECT_SOURCE_DIR}/src/tracker/cocoa
)

# Link against Cocoa framework and make osinterface PUBLIC
target_link_libraries(osinterface
PUBLIC
"-framework Cocoa"
)
elseif(WIN32)
target_sources(osinterface
PRIVATE
Expand Down
1 change: 1 addition & 0 deletions src/tools/export-to-wav/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ add_executable(export-to-wav
target_link_libraries(export-to-wav PRIVATE
trackerlib
compression
osinterface
${LHASA_LIBRARIES}
${ZZIPLIB_LIBRARIES}
${ZLIB_LIBRARIES}
Expand Down
1 change: 1 addition & 0 deletions src/tracker/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ target_include_directories(tracker
target_link_libraries(tracker
fx
trackerlib
osinterface
)

if(CMAKE_VERSION GREATER_EQUAL 3.12)
Expand Down

0 comments on commit efa05f5

Please sign in to comment.