# top level files
set (node_https)

set (node_https_cpp

 	nodes/https/src/controller.cpp
 	nodes/https/src/logic.cpp
 	nodes/https/src/main.cpp

)

set (node_https_h

	nodes/https/src/controller.h
	nodes/https/src/logic.h

)

set (node_https_info
	${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}_project_info.h

	nodes/print_build_info.h
	nodes/print_version_info.h
	nodes/set_start_options.h
	nodes/show_ip_address.h

	nodes/print_build_info.cpp
	nodes/print_version_info.cpp
	nodes/set_start_options.cpp
	nodes/show_ip_address.cpp
)	

if(WIN32)

	set (node_https_service
		nodes/https/templates/https_create_service.cmd.in
		nodes/https/templates/https_delete_service.cmd.in
		nodes/https/templates/https_restart_service.cmd.in
		nodes/https/templates/https.windows.cgf.in
	)
 
	set (node_https_res
		${CMAKE_CURRENT_BINARY_DIR}/https.rc 
		src/main/resources/logo.ico
		nodes/https/templates/https.exe.manifest
	)

else()

	set (node_https_service
		nodes/https/templates/https.service.in
		nodes/https/templates/https.linux.cgf.in
	)

endif()

source_group("service" FILES ${node_https_service})
source_group("info" FILES ${node_https_info})


# define the main program
set (node_https
  ${node_https_cpp}
  ${node_https_h}
  ${node_https_service}
  ${node_https_info}
)

if(WIN32)
	source_group("resources" FILES ${node_https_res})
	list(APPEND node_https ${node_https_res})
endif()
