find_package(OpenGL REQUIRED)

libname(jlsignal jlsignal)

ExternalProject_Add(
   JLSIGNAL_BUILD
   URL ""
   SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/jlsignal
   UPDATE_COMMAND ""
   INSTALL_DIR ${ThirdParty_Install_Dir}
   CMAKE_ARGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DCMAKE_STAGING_PREFIX:PATH=${ThirdParty_Install_Dir}
   CMAKE_GENERATOR "${CMAKE_GENERATOR}"
   CMAKE_GENERATOR_TOOLSET ${CMAKE_GENERATOR_TOOLSET}
   BUILD_BYPRODUCTS ${jlsignal_LIBRARY_STATIC}
)
ADD_LIBRARY(jlsignal_IMP STATIC IMPORTED GLOBAL)
add_dependencies(jlsignal_IMP JLSIGNAL_BUILD)
SET_TARGET_PROPERTIES(jlsignal_IMP PROPERTIES IMPORTED_LOCATION ${jlsignal_LIBRARY_STATIC})
