CMakeLists.txt
changeset 632 4faa0c763906
parent 622 20dac2104519
child 656 ebdcc68fe79e
equal deleted inserted replaced
21:e50b54923d03 22:161b93948f58
    15 INCLUDE(FindGhostscript)
    15 INCLUDE(FindGhostscript)
    16 FIND_PACKAGE(GLPK 4.33)
    16 FIND_PACKAGE(GLPK 4.33)
    17 FIND_PACKAGE(CPLEX)
    17 FIND_PACKAGE(CPLEX)
    18 FIND_PACKAGE(COIN)
    18 FIND_PACKAGE(COIN)
    19 
    19 
    20 ADD_DEFINITIONS(-DHAVE_CONFIG_H)
       
    21 
       
    22 IF(MSVC)
    20 IF(MSVC)
    23   SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4250 /wd4355 /wd4800 /wd4996")
    21   SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4250 /wd4355 /wd4800 /wd4996")
    24 # Suppressed warnings:
    22 # Suppressed warnings:
    25 # C4250: 'class1' : inherits 'class2::member' via dominance
    23 # C4250: 'class1' : inherits 'class2::member' via dominance
    26 # C4355: 'this' : used in base member initializer list
    24 # C4355: 'this' : used in base member initializer list
    27 # C4800: 'type' : forcing value to bool 'true' or 'false' (performance warning)
    25 # C4800: 'type' : forcing value to bool 'true' or 'false' (performance warning)
    28 # C4996: 'function': was declared deprecated
    26 # C4996: 'function': was declared deprecated
    29 ENDIF(MSVC)
    27 ENDIF(MSVC)
    30 
       
    31 ADD_DEFINITIONS(-DHAVE_CONFIG_H)
       
    32 
    28 
    33 INCLUDE(CheckTypeSize)
    29 INCLUDE(CheckTypeSize)
    34 CHECK_TYPE_SIZE("long long" LEMON_LONG_LONG)
    30 CHECK_TYPE_SIZE("long long" LEMON_LONG_LONG)
    35 
    31 
    36 ENABLE_TESTING()
    32 ENABLE_TESTING()