Skip to content

Commit

Permalink
Linux Support
Browse files Browse the repository at this point in the history
  • Loading branch information
a3st committed Jul 15, 2024
1 parent 442dabd commit 53d25e8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 20 deletions.
26 changes: 10 additions & 16 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,6 @@ add_executable(Notes
src/note_storage.cpp
src/note.cpp)

if(WIN32)
set_target_properties(Notes
PROPERTIES
LINK_FLAGS_DEBUG "/SUBSYSTEM:CONSOLE"
LINK_FLAGS_RELEASE "/SUBSYSTEM:windows /ENTRY:mainCRTStartup"
LINK_FLAGS_RELWITHDEBINFO "/SUBSYSTEM:windows /ENTRY:mainCRTStartup"
LINK_FLAGS_MINSIZEREL "/SUBSYSTEM:windows /ENTRY:mainCRTStartup"
)

target_sources(Notes PRIVATE app.rc)
endif()

target_include_directories(Notes PRIVATE
${PROJECT_SOURCE_DIR}/src
${PROJECT_SOURCE_DIR}/include)
Expand All @@ -54,12 +42,18 @@ target_link_libraries(Notes PRIVATE
base64pp
SQLiteCpp
simdjson
libwebview_edge)
libwebview)

if(WIN32)
target_link_libraries(Notes PRIVATE libwebview_edge)
elseif(UNIX)
target_link_libraries(Notes PRIVATE libwebview_webkit)
set_target_properties(Notes
PROPERTIES
LINK_FLAGS_DEBUG "/SUBSYSTEM:CONSOLE"
LINK_FLAGS_RELEASE "/SUBSYSTEM:windows /ENTRY:mainCRTStartup"
LINK_FLAGS_RELWITHDEBINFO "/SUBSYSTEM:windows /ENTRY:mainCRTStartup"
LINK_FLAGS_MINSIZEREL "/SUBSYSTEM:windows /ENTRY:mainCRTStartup"
)

target_sources(Notes PRIVATE app.rc)
endif()

add_custom_command(
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Notes
# Notes

Minimalistic note editor in Markdown format.

Expand All @@ -12,7 +12,7 @@ Download all dependencies (thirdparty) using --recursive git.

### Requirements

- Visual Studio 2022 or Clang-18
- Visual Studio /or Build Tools 2022 or Clang 18
- CMake 3.25.1+

## Thirdparties
Expand Down

0 comments on commit 53d25e8

Please sign in to comment.