From a14a7a0ccc9de76aeab0b2e4bbf58f1a79deedc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 3 Jul 2024 10:19:30 +0200 Subject: New upstream version 5.3.0GA --- app/wlib/CMakeLists.txt | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'app/wlib/CMakeLists.txt') diff --git a/app/wlib/CMakeLists.txt b/app/wlib/CMakeLists.txt index 4fa7469..7f7ee82 100644 --- a/app/wlib/CMakeLists.txt +++ b/app/wlib/CMakeLists.txt @@ -1,10 +1,19 @@ -PROJECT(wlib) +project(wlib) -INCLUDE_DIRECTORIES("${wlib_SOURCE_DIR}/include") +add_library( xtrkcad-wlib + "") -IF(XTRKCAD_USE_GTK) - ADD_SUBDIRECTORY(gtklib) -ELSE(XTRKCAD_USE_GTK) - ADD_SUBDIRECTORY(mswlib) -ENDIF(XTRKCAD_USE_GTK) +add_subdirectory(include) + +# add i18n.h to include path +target_include_directories(xtrkcad-wlib + PRIVATE + ${xtrkcad-lib_SOURCE_DIR} +) + +if(XTRKCAD_USE_GTK) + add_subdirectory(gtklib) +else() + add_subdirectory(mswlib) +endif() -- cgit v1.2.3