summaryrefslogtreecommitdiff
path: root/app/wlib/mswlib/CMakeLists.txt
blob: 1d8464a9e26422a5b0c0f6a275217355f023711e (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#
# build the Win32 variant of the wlib
#



if(XTRKCAD_USE_GETTEXT)
	if(WIN32)
		add_definitions(-DUSE_SIMPLE_GETTEXT )
	endif(WIN32)
endif(XTRKCAD_USE_GETTEXT)

target_sources(xtrkcad-wlib
	PRIVATE 
		backgnd.c
		getopt.c
		mswbox.c
		mswbutt.c
		mswbitmap.c
		mswchoic.c
		mswcolor.c
		mswdraw.c
		mswedit.c
		mswlines.c
		mswlist.c
		mswmenu.c
		mswmisc.c
		mswmsg.c
		mswpref.c
		mswprint.c
		mswsplash.c
		mswstatus.c
		mswtext.c
		gwin32.c
		simple-gettext.c
		sysinfo.c
		utf8conv.c	
		mswint.h
		dynarr.h
		getline/getline.c
	)

target_link_libraries(xtrkcad-wlib 
	PRIVATE
	Htmlhelp 
	msimg32 
	shlwapi
	FreeImage::FreeImage
)

install(FILES
	${FREEIMAGE_SHAREDLIB}
	DESTINATION ${XTRKCAD_BIN_INSTALL_DIR}
)

if(XTRKCAD_TESTING AND CMOCKA_FOUND)
	add_subdirectory( unittest )
endif()