File: CMakeLists.txt

package info (click to toggle)
aseba 1.6.0-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 18,300 kB
  • sloc: cpp: 44,647; ansic: 5,686; python: 1,455; java: 1,136; sh: 393; xml: 202; makefile: 10
file content (30 lines) | stat: -rw-r--r-- 942 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
if (Qt5_FOUND)
	set(QT_USE_QTMAIN ON)
	#include(${QT_USE_FILE})
	find_package(Qt5 COMPONENTS Widgets)
	
	set(thymiownetconfig_SRCS
		ThymioWNetConfig.cpp)
	qt5_wrap_cpp(thymiownetconfig_MOCS
		ThymioWNetConfig.h
	)
	
	qt5_add_resources(resfiles thymiownetconfig.qrc)
	
	include_directories (${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR})
	
	add_executable(thymiownetconfig WIN32 ${thymiownetconfig_SRCS} ${thymiownetconfig_MOCS} ${resfiles} ${CMAKE_BINARY_DIR}/version.h)
	if (HAS_DYN_VERSION)
		add_dependencies(thymiownetconfig versionheader)
	endif (HAS_DYN_VERSION)

	target_link_libraries(thymiownetconfig ${QT_LIBRARIES} ${ASEBA_CORE_LIBRARIES} Qt5::Widgets)

	install(TARGETS thymiownetconfig RUNTIME DESTINATION bin LIBRARY DESTINATION bin)

endif (Qt5_FOUND)

if (UNIX)
	add_executable(thymiownetconfig-cli thymiownetconfig-cli.c)
	install(TARGETS thymiownetconfig-cli RUNTIME DESTINATION bin LIBRARY DESTINATION bin)
endif (UNIX)