summaryrefslogtreecommitdiff
path: root/app/tools/pngtoxpm/CMakeLists.txt
blob: 54f697b0171f4367a50500b1a30477142b4d9d6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Build pngtoxpm

add_executable(pngtoxpm pngtoxpm.c)
target_link_libraries(pngtoxpm 
	PRIVATE
	FreeImage::FreeImage
)

if(WIN32)
# copy dlls into the build dir for easier debugging
	add_custom_command(
		TARGET pngtoxpm POST_BUILD
		COMMAND ${CMAKE_COMMAND} -E copy ${FREEIMAGE_SHAREDLIB} ${CMAKE_CURRENT_BINARY_DIR}
	)
	set(ENV{path} "${CMAKE_CURRENT_BINARY_DIR};$ENV{PATH}")
endif()