Skip to content
Snippets Groups Projects
Commit 3fa0d2cf authored by Mathis Rosenhauer's avatar Mathis Rosenhauer
Browse files

Move generated include files

to /../include
parent daeca512
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,7 @@ endif() ...@@ -36,7 +36,7 @@ endif()
# Communicate findings to code. Has to be compatible with autoconf's config.h. # Communicate findings to code. Has to be compatible with autoconf's config.h.
configure_file( configure_file(
"cmake/config.h.in" "cmake/config.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/config.h") "${CMAKE_CURRENT_BINARY_DIR}/include/config.h")
# Create libaec.h with current version information # Create libaec.h with current version information
configure_file( configure_file(
......
...@@ -7,7 +7,7 @@ add_library(aec OBJECT ...@@ -7,7 +7,7 @@ add_library(aec OBJECT
target_include_directories(aec target_include_directories(aec
PUBLIC PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>" "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>"
"$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/..>" "$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/../include>"
"$<INSTALL_INTERFACE:include>") "$<INSTALL_INTERFACE:include>")
# Create both static and shared aec library. # Create both static and shared aec library.
...@@ -15,7 +15,8 @@ add_library(aec_static STATIC "$<TARGET_OBJECTS:aec>") ...@@ -15,7 +15,8 @@ add_library(aec_static STATIC "$<TARGET_OBJECTS:aec>")
target_link_libraries(aec_static PUBLIC aec) target_link_libraries(aec_static PUBLIC aec)
set_target_properties(aec_static set_target_properties(aec_static
PROPERTIES PROPERTIES
OUTPUT_NAME $<IF:$<BOOL:${MSVC}>,aec-static,aec>) OUTPUT_NAME $<IF:$<BOOL:${MSVC}>,aec-static,aec>
)
add_library(aec_shared SHARED "$<TARGET_OBJECTS:aec>") add_library(aec_shared SHARED "$<TARGET_OBJECTS:aec>")
target_link_libraries(aec_shared PUBLIC aec) target_link_libraries(aec_shared PUBLIC aec)
...@@ -23,8 +24,7 @@ set_target_properties(aec_shared ...@@ -23,8 +24,7 @@ set_target_properties(aec_shared
PROPERTIES PROPERTIES
VERSION 0.0.12 VERSION 0.0.12
SOVERSION 0 SOVERSION 0
OUTPUT_NAME aec OUTPUT_NAME aec)
PUBLIC_HEADER ${CMAKE_CURRENT_BINARY_DIR}/../include/libaec.h)
# Wrapper for compatibility with szip # Wrapper for compatibility with szip
add_library(sz OBJECT sz_compat.c) add_library(sz OBJECT sz_compat.c)
...@@ -43,8 +43,7 @@ set_target_properties(sz_shared ...@@ -43,8 +43,7 @@ set_target_properties(sz_shared
PROPERTIES PROPERTIES
VERSION 2.0.1 VERSION 2.0.1
SOVERSION 2 SOVERSION 2
OUTPUT_NAME $<IF:$<BOOL:${MSVC}>,szip,sz> OUTPUT_NAME $<IF:$<BOOL:${MSVC}>,szip,sz>)
PUBLIC_HEADER ../include/szlib.h)
# Simple client for testing and benchmarking. # Simple client for testing and benchmarking.
# Can also be used stand-alone # Can also be used stand-alone
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment