Merge pull request #2128 from spnethw/handle-description-files-case-insensitive
[far2l.git] / WinPort / CMakeLists.txt
blob3295d5408e3753c82df8024c75a1a707b7043d83
1 project(WinPort)
3 add_subdirectory(wineguts)
5 set(SOURCES
6 src/APIClipboard.cpp
7 src/APIConsole.cpp
8 src/APIFiles.cpp
9 src/APIKeyboard.cpp
10 src/APIOther.cpp
11 src/APIPrintFormat.cpp
12 src/APIRegistry.cpp
13 src/APIStringCodepages.cpp
14 src/APIStringMap.cpp
15 src/APITime.cpp
16 src/ConsoleBuffer.cpp
17 src/ConsoleInput.cpp
18 src/ConsoleOutput.cpp
19 src/WinPortHandle.cpp
20 src/CustomPanic.cpp
21 src/PathHelpers.cpp
22 src/SavedScreen.cpp
23 src/sudo/sudo_common.cpp
24 src/sudo/sudo_client.cpp
25 src/sudo/sudo_client_api.cpp
26 src/sudo/sudo_dispatcher.cpp
27 src/sudo/sudo_askpass.cpp
28 src/sudo/sudo_askpass_ipc.cpp
29 src/Backend/WinPortMain.cpp
30 src/Backend/WinPortRGB.cpp
31 src/Backend/SudoAskpassImpl.cpp
32 src/Backend/FSClipboardBackend.cpp
33 src/Backend/ExtClipboardBackend.cpp
34 src/Backend/TTY/TTYBackend.cpp
35 src/Backend/TTY/TTYRevive.cpp
36 src/Backend/TTY/TTYInput.cpp
37 src/Backend/TTY/TTYInputSequenceParser.cpp
38 src/Backend/TTY/TTYInputSequenceParserExts.cpp
39 src/Backend/TTY/TTYOutput.cpp
40 src/Backend/TTY/TTYFar2lClipboardBackend.cpp
41 src/Backend/TTY/OSC52ClipboardBackend.cpp
42 src/Backend/TTY/TTYNegotiateFar2l.cpp
43 src/Backend/TTY/TTYXGlue.cpp
46 add_library (WinPort STATIC ${SOURCES})
48 target_include_directories(WinPort PRIVATE .)
49 target_include_directories(WinPort PRIVATE src)
50 target_include_directories(WinPort PRIVATE src/Backend)
52 target_link_libraries(WinPort wineguts utils)
54 find_package(Threads REQUIRED)
55 if(THREADS_HAVE_PTHREAD_ARG)
56     target_compile_options(WinPort PUBLIC "-pthread")
57 endif()
58 if(CMAKE_THREAD_LIBS_INIT)
59     target_link_libraries(WinPort "${CMAKE_THREAD_LIBS_INIT}")
60 endif()
61 if(${CMAKE_SYSTEM_NAME} MATCHES "Haiku")
62     target_link_libraries(WinPort root)
63 endif()