CMake: Fix installation include directory
This commit is contained in:
@@ -12,13 +12,19 @@ if(NOT wxBUILD_INSTALL)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
install(CODE "message(STATUS \"Installing: Headers...\")")
|
install(CODE "message(STATUS \"Installing: Headers...\")")
|
||||||
wx_install(
|
if(UNIX)
|
||||||
DIRECTORY "${wxSOURCE_DIR}/include/wx"
|
|
||||||
DESTINATION "include")
|
|
||||||
if(MSVC)
|
|
||||||
wx_install(
|
wx_install(
|
||||||
DIRECTORY "${wxSOURCE_DIR}/include/msvc"
|
DIRECTORY "${wxSOURCE_DIR}/include/wx"
|
||||||
|
DESTINATION "include/wx-${wxMAJOR_VERSION}.${wxMINOR_VERSION}")
|
||||||
|
else()
|
||||||
|
wx_install(
|
||||||
|
DIRECTORY "${wxSOURCE_DIR}/include/wx"
|
||||||
DESTINATION "include")
|
DESTINATION "include")
|
||||||
|
if(MSVC)
|
||||||
|
wx_install(
|
||||||
|
DIRECTORY "${wxSOURCE_DIR}/include/msvc"
|
||||||
|
DESTINATION "include")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# setup header and wx-config
|
# setup header and wx-config
|
||||||
|
Reference in New Issue
Block a user