Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ if( NOT HUNSPELL_FOUND )
message("-- Found Hunspell at ${HUNSPELL_LIBRARIES}")
endif()
endif()
if (NOT WIN32 AND NOT APPLE)
pkg_check_modules(GTK3 REQUIRED gtk+-3.0)
endif()

include_directories("${PROJECT_BINARY_DIR}/src")
include_directories("${PROJECT_SOURCE_DIR}/src")
Expand All @@ -36,6 +39,11 @@ target_link_libraries(${PROJECT_NAME} ${wxWidgets_LIBRARIES})
target_link_libraries(${PROJECT_NAME} ${Boost_LIBRARIES})
target_link_libraries(${PROJECT_NAME} ${HUNSPELL_LIBRARIES})

if (NOT WIN32 AND NOT APPLE)
link_directories(${GTK3_LIBRARY_DIRS})
target_link_libraries(${PROJECT_NAME} ${GTK3_LIBRARIES})
endif()

file(GLOB_RECURSE sources src/*.cpp)
list(FILTER sources EXCLUDE REGEX win32_cli_wrapper.cpp)
target_sources(magicseteditor PRIVATE ${sources})
Expand Down