Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/elfmz/far2l.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/farlng
diff options
context:
space:
mode:
Diffstat (limited to 'farlng')
-rw-r--r--farlng/CMakeLists.txt12
1 files changed, 5 insertions, 7 deletions
diff --git a/farlng/CMakeLists.txt b/farlng/CMakeLists.txt
index d66a8001..a7c9af9d 100644
--- a/farlng/CMakeLists.txt
+++ b/farlng/CMakeLists.txt
@@ -1,18 +1,16 @@
+project(farlng)
+
file(GLOB_RECURSE SOURCES "*.cpp")
find_package(PkgConfig REQUIRED)
-find_package(wxWidgets REQUIRED net gl core base)
pkg_check_modules(GLIB2 glib-2.0)
-include(${wxWidgets_USE_FILE})
-include_directories(${GLIB2_INCLUDE_DIRS})
-include_directories(wxWidgets_INCLUDE_DIRS)
-
-include_directories(../WinPort)
-
add_executable (farlng ${SOURCES})
+target_include_directories(farlng SYSTEM PRIVATE ${GLIB2_INCLUDE_DIRS})
+target_include_directories(farlng PRIVATE ../WinPort)
+
target_link_libraries (farlng WinPort ${wxWidgets_LIBRARIES} ${GLIB2_LIBRARIES} dl)