cmake_minimum_required(VERSION 3.2)
project(threads)

addProjectIncludeDirectory()
setUpProject(library)

if (GALAXY_ENABLE_UNITY_BUILD)
	set_property(TARGET ${PROJECT_NAME} PROPERTY UNITY_BUILD ON)
    if (WIN32)
		# Remove Thread.cpp because it includes afx.h, which complains about Windows.h being included somewhere.
		set_source_files_properties(
			Thread.cpp
			PROPERTIES
			SKIP_UNITY_BUILD_INCLUSION ON
		)
    endif (WIN32)
endif (GALAXY_ENABLE_UNITY_BUILD)

target_link_libraries(${PROJECT_NAME} PUBLIC ${CONAN_LIBS_POCO_FOUNDATION})
target_link_libraries(${PROJECT_NAME} PUBLIC Qt5::Core)

target_link_libraries(${PROJECT_NAME} PUBLIC error-handling)
target_link_libraries(${PROJECT_NAME} PUBLIC fundamentals)
