kicad/libs/kiplatform/CMakeLists.txt

40 lines
694 B
CMake

# Add the appropriate source files
if( APPLE )
set( PLATFORM_SRCS
osx/app.mm
osx/ui.mm
)
set( PLATFORM_LIBS
"-framework Cocoa"
"-framework AppKit"
"-framework CoreData"
"-framework Foundation"
)
elseif( WIN32 )
set( PLATFORM_SRCS
msw/app.cpp
msw/ui.cpp
)
elseif( UNIX )
set( PLATFORM_SRCS
gtk/app.cpp
gtk/ui.cpp
)
endif()
add_library( kiplatform STATIC
${PLATFORM_SRCS}
)
target_include_directories( kiplatform PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include
)
target_link_libraries( kiplatform
${wxWidgets_LIBRARIES}
${PLATFORM_LIBS}
)