|
3 | 3 | # the plugin to fail to compile for some customers of the plugin. |
4 | 4 | cmake_minimum_required(VERSION 3.10) |
5 | 5 |
|
6 | | -project(libnativeapi VERSION 0.0.1 LANGUAGES CXX) |
| 6 | +project(nativeapi VERSION 0.0.1 LANGUAGES CXX) |
7 | 7 |
|
8 | 8 | # Enable Objective-C++ |
9 | 9 | if(APPLE) |
@@ -38,31 +38,31 @@ else() |
38 | 38 | endif() |
39 | 39 |
|
40 | 40 | # Add library target |
41 | | -add_library(libnativeapi STATIC |
| 41 | +add_library(nativeapi STATIC |
42 | 42 | ${COMMON_SOURCES} |
43 | 43 | ${PLATFORM_SOURCES} |
44 | 44 | ${CAPI_SOURCES} |
45 | 45 | ) |
46 | 46 |
|
47 | 47 | # Set library properties |
48 | | -set_target_properties(libnativeapi PROPERTIES |
| 48 | +set_target_properties(nativeapi PROPERTIES |
49 | 49 | PUBLIC_HEADER "${CMAKE_CURRENT_SOURCE_DIR}/../include/**/*.h" |
50 | 50 | ) |
51 | 51 |
|
52 | 52 | # Set library include directories |
53 | | -target_include_directories(libnativeapi PUBLIC |
| 53 | +target_include_directories(nativeapi PUBLIC |
54 | 54 | $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include> |
55 | 55 | $<INSTALL_INTERFACE:include> |
56 | 56 | ) |
57 | 57 |
|
58 | 58 | if (CMAKE_SYSTEM_NAME STREQUAL "Linux") |
59 | | - target_include_directories(libnativeapi PUBLIC ${GTK_INCLUDE_DIRS}) |
| 59 | + target_include_directories(nativeapi PUBLIC ${GTK_INCLUDE_DIRS}) |
60 | 60 | endif () |
61 | 61 |
|
62 | 62 | # Link required frameworks and libraries |
63 | 63 | if(APPLE) |
64 | | - target_link_libraries(libnativeapi PUBLIC "-framework Cocoa") |
65 | | - target_compile_options(libnativeapi PRIVATE "-x" "objective-c++") |
| 64 | + target_link_libraries(nativeapi PUBLIC "-framework Cocoa") |
| 65 | + target_compile_options(nativeapi PRIVATE "-x" "objective-c++") |
66 | 66 | elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux") |
67 | | - target_link_libraries(libnativeapi PUBLIC PkgConfig::GTK PkgConfig::X11 PkgConfig::XI pthread) |
| 67 | + target_link_libraries(nativeapi PUBLIC PkgConfig::GTK PkgConfig::X11 PkgConfig::XI pthread) |
68 | 68 | endif () |
0 commit comments