2015-05-22 21:01:44 +03:00
|
|
|
|
|
|
|
enable_language(CXX)
|
|
|
|
|
|
|
|
# Ensure CMake warns even if toolchain does not really have these flags.
|
|
|
|
set(CMAKE_CXX_COMPILE_OPTIONS_VISIBILITY_INLINES_HIDDEN "-fvisibility-inlines-hidden")
|
|
|
|
set(CMAKE_CXX_COMPILE_OPTIONS_VISIBILITY "-fvisibility=")
|
|
|
|
|
2015-10-21 00:54:33 +03:00
|
|
|
set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)
|
|
|
|
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
|
|
|
|
|
|
|
|
add_executable(myexe lib.cpp)
|