Commit f2c49dcd authored by Sandrine Avakian's avatar Sandrine Avakian

Modifying CMAkeLists.txt.

parent 7b1575dc
......@@ -64,7 +64,6 @@ if(ENABLE_STATIC)
else()
add_library(bv16 SHARED ${BV16_SOURCE_FILES})
add_executable(BroadVoice16 ${BV16_SOURCE_FILES})
else()
if(MSVC)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Debug/bv16.pdb
......@@ -76,9 +75,12 @@ else()
endif()
if(APPLE)
target_link_libraries(bv16 "-framework Cocoa -lm")
target_link_libraries(bv16 "m")
endif()
# if(APPLE)
# target_link_libraries(bv16 "-framework Cocoa -lm")
# endif()
install(TARGETS bv16
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
......@@ -108,73 +110,3 @@ install(FILES ${BV16_COMMON_HEADER_FILES}
DESTINATION include/bv16-floatingpoint/bvcommon
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
)
# install(FILES
# DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/cmake/bv16
#)
# # Offer the user the choice of overriding the installation directories
# set(INSTALL_LIB_DIR lib CACHE PATH "Installation directory for libraries")
# set(INSTALL_BIN_DIR bin CACHE PATH "Installation directory for executables")
# set(INSTALL_INCLUDE_DIR include CACHE PATH
# "Installation directory for header files")
# if(WIN32 AND NOT CYGWIN)
# set(DEF_INSTALL_CMAKE_DIR CMake)
# else()
# set(DEF_INSTALL_CMAKE_DIR lib/CMake/FooBar)
# endif()
# set(INSTALL_CMAKE_DIR ${DEF_INSTALL_CMAKE_DIR} CACHE PATH
# "Installation directory for CMake files")
# # Make relative paths absolute (needed later on)
# foreach(p LIB BIN INCLUDE CMAKE)
# set(var INSTALL_${p}_DIR)
# if(NOT IS_ABSOLUTE "${${var}}")
# set(${var} "${CMAKE_INSTALL_PREFIX}/${${var}}")
# endif()
# endforeach()
# # set up include-directories
# include_directories(
# "${PROJECT_SOURCE_DIR}" # to find foo/foo.h
# "${PROJECT_BINARY_DIR}") # to find foo/config.h
# # Add sub-directories
# add_subdirectory(foo)
# add_subdirectory(bar)
# # The interesting stuff goes here
# # ===============================
# # Add all targets to the build-tree export set
# export(TARGETS foo bar
# FILE "${PROJECT_BINARY_DIR}/FooBarTargets.cmake")
# # Export the package for use from the build-tree
# # (this registers the build-tree with a global CMake-registry)
# export(PACKAGE FooBar)
# # Create the FooBarConfig.cmake and FooBarConfigVersion files
# file(RELATIVE_PATH REL_INCLUDE_DIR "${INSTALL_CMAKE_DIR}"
# "${INSTALL_INCLUDE_DIR}")
# # ... for the build tree
# set(CONF_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}" "${PROJECT_BINARY_DIR}")
# configure_file(FooBarConfig.cmake.in
# "${PROJECT_BINARY_DIR}/FooBarConfig.cmake" @ONLY)
# # ... for the install tree
# set(CONF_INCLUDE_DIRS "\${FBV16_CMAKE_DIR}/${REL_INCLUDE_DIR}")
# configure_file(FooBarConfig.cmake.in
# "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/FooBarConfig.cmake" @ONLY)
# # ... for both
# configure_file(FooBarConfigVersion.cmake.in
# "${PROJECT_BINARY_DIR}/FooBarConfigVersion.cmake" @ONLY)
# # Install the FooBarConfig.cmake and FooBarConfigVersion.cmake
# install(FILES
# "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/FooBarConfig.cmake"
# "${PROJECT_BINARY_DIR}/FooBarConfigVersion.cmake"
# DESTINATION "${INSTALL_CMAKE_DIR}" COMPONENT dev)
# # Install the export set for use with the install-tree
# install(EXPORT FooBarTargets DESTINATION
# "${INSTALL_CMAKE_DIR}" COMPONENT dev)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment