comparison Plugins/Samples/WebSkeleton/Framework/Framework.cmake @ 1390:92da9e1c2daa

improvement of samples
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 29 May 2015 17:24:01 +0200
parents 3d76e26b3865
children b1291df2f780
comparison
equal deleted inserted replaced
1389:c236a8b35a3b 1390:92da9e1c2daa
13 # General Public License for more details. 13 # General Public License for more details.
14 # 14 #
15 # You should have received a copy of the GNU General Public License 15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>. 16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
18
19 if (${CMAKE_COMPILER_IS_GNUCXX})
20 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -Werror -Wno-unused-function")
21 endif()
22
23 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
24 # Linking with "pthread" is necessary, otherwise the software might crash
25 # http://sourceware.org/bugzilla/show_bug.cgi?id=10652#c17
26 link_libraries(pthread dl)
27 endif()
28 18
29 if (STANDALONE_BUILD) 19 if (STANDALONE_BUILD)
30 add_definitions(-DORTHANC_PLUGIN_STANDALONE=1) 20 add_definitions(-DORTHANC_PLUGIN_STANDALONE=1)
31 21
32 set(AUTOGENERATED_DIR "${CMAKE_CURRENT_BINARY_DIR}/AUTOGENERATED") 22 set(AUTOGENERATED_DIR "${CMAKE_CURRENT_BINARY_DIR}/AUTOGENERATED")