summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2016-09-13 10:17:30 (GMT)
committerRalf Habacker <ralf.habacker@freenet.de>2016-09-13 10:17:30 (GMT)
commit41e9adfbbc201e05e2619efe526c82b7ecc8efb9 (patch)
treef5e0757623fa9422be440c3909878558af9cc28c
parentf5e7ad324325d82f8cbca05a1c1ef9a302a083d1 (diff)
Build command line tools as console application on Windows and Mac OSX.
Otherwise you cannot see any output.
-rw-r--r--CMakeLists.txt10
-rw-r--r--tools/CMakeLists.txt2
-rw-r--r--unittests/CMakeLists.txt1
3 files changed, 12 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b64a59b..de69d91 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -109,6 +109,16 @@ if(NOT BUILD_KF5)
kde4_add_executable(${ARGN})
endmacro(ecm_add_executable)
+ macro(ecm_mark_nongui_executable)
+ foreach(_target ${ARGN})
+ set_target_properties(${_target}
+ PROPERTIES
+ WIN32_EXECUTABLE FALSE
+ MACOSX_BUNDLE FALSE
+ )
+ endforeach()
+ endmacro(ecm_mark_nongui_executable)
+
macro_display_feature_log()
KDE4_NO_ENABLE_FINAL(umbrello)
else()
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
index fb1eeb3..1ce99f8 100644
--- a/tools/CMakeLists.txt
+++ b/tools/CMakeLists.txt
@@ -20,4 +20,4 @@ target_link_libraries(xmi2pot ${LIBS})
install(TARGETS xmi2pot ${INSTALL_TARGETS_DEFAULT_ARGS})
-
+ecm_mark_nongui_executable(po2xmi xmi2pot)
diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt
index dd72b19..81f8077 100644
--- a/unittests/CMakeLists.txt
+++ b/unittests/CMakeLists.txt
@@ -142,4 +142,5 @@ if(LLVM_FOUND)
add_executable(TEST_llvm_parser TEST_llvm_parser.cpp)
llvm_map_components_to_libnames(llvm_libs support)
target_link_libraries(TEST_llvm_parser ${llvm_libs} clangFrontend clangTooling clangAST clangBasic ${LIBS})
+ ecm_mark_nongui_executable(test-llvm TEST_llvm_parser)
endif()