Last active
July 20, 2016 07:31
-
-
Save yjiro0403/f0bc847c5d3ae861e1ad3b8cc4c2c37c to your computer and use it in GitHub Desktop.
Point Cloud Library1.8(PCL)のプロジェクト作成 ref: http://qiita.com/yjiro0403/items/8df31f95970f424fa9c6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cmake_minimum_required(VERSION 2.6 FATAL_ERROR) | |
| project(MY_GRAND_PROJECT) | |
| find_package(PCL 1.8 REQUIRED COMPONENTS common io) | |
| set(GUI_TYPE WIN32) | |
| set(HDR) | |
| set(RES) | |
| add_definitions(-DWIN32 -D_WINDOWS -D_UNICODE -DUNICODE) | |
| include_directories(${PCL_INCLUDE_DIRS}) | |
| link_directories(${PCL_LIBRARY_DIRS}) | |
| add_definitions(${PCL_DEFINITIONS}) | |
| add_executable(pcd_write_test pcd_write.cpp) | |
| target_link_libraries(pcd_write_test ${PCL_COMMON_LIBRARIES} ${PCL_IO_LIBRARIES}) | |
| set(SRC pcd_write.cpp) | |
| set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SUBSYSTEM:WINDOWS,5.01") | |
| add_custom_target(${CMAKE_PROJECT}_HEADERS SOURCES ${HDR}) | |
| add_executable(${CMAKE_PROJECT_NAME} ${GUI_TYPE} ${SRC} ${RES}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CMake Warning (dev) at C:/Program Files/VTK/lib/cmake/vtk-7.0/VTKTargets.cmake:28 (if): | |
| Policy CMP0054 is not set: Only interpret if() arguments as variables or | |
| keywords when unquoted. Run "cmake --help-policy CMP0054" for policy | |
| details. Use the cmake_policy command to set the policy and suppress this | |
| warning. | |
| Quoted variables like "" will no longer be dereferenced when the policy is | |
| set to NEW. Since the policy is not set the OLD behavior will be used. | |
| Call Stack (most recent call first): | |
| C:/Program Files/VTK/lib/cmake/vtk-7.0/VTKConfig.cmake:68 (include) | |
| CMakeLists.txt:362 (find_package) | |
| This warning is for project developers. Use -Wno-dev to suppress it. | |
| CMake Warning (dev) at C:/Program Files/VTK/lib/cmake/vtk-7.0/VTKTargets.cmake:33 (if): | |
| Policy CMP0054 is not set: Only interpret if() arguments as variables or | |
| keywords when unquoted. Run "cmake --help-policy CMP0054" for policy | |
| details. Use the cmake_policy command to set the policy and suppress this | |
| warning. | |
| Quoted variables like "" will no longer be dereferenced when the policy is | |
| set to NEW. Since the policy is not set the OLD behavior will be used. | |
| Call Stack (most recent call first): | |
| C:/Program Files/VTK/lib/cmake/vtk-7.0/VTKConfig.cmake:68 (include) | |
| CMakeLists.txt:362 (find_package) | |
| This warning is for project developers. Use -Wno-dev to suppress it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CMake Warning (dev) at C:/Program Files/VTK/lib/cmake/vtk-7.0/VTKTargets.cmake:28 (if): | |
| Policy CMP0054 is not set: Only interpret if() arguments as variables or | |
| keywords when unquoted. Run "cmake --help-policy CMP0054" for policy | |
| details. Use the cmake_policy command to set the policy and suppress this | |
| warning. | |
| Quoted variables like "" will no longer be dereferenced when the policy is | |
| set to NEW. Since the policy is not set the OLD behavior will be used. | |
| Call Stack (most recent call first): | |
| C:/Program Files/VTK/lib/cmake/vtk-7.0/VTKConfig.cmake:68 (include) | |
| CMakeLists.txt:362 (find_package) | |
| This warning is for project developers. Use -Wno-dev to suppress it. | |
| CMake Warning (dev) at C:/Program Files/VTK/lib/cmake/vtk-7.0/VTKTargets.cmake:33 (if): | |
| Policy CMP0054 is not set: Only interpret if() arguments as variables or | |
| keywords when unquoted. Run "cmake --help-policy CMP0054" for policy | |
| details. Use the cmake_policy command to set the policy and suppress this | |
| warning. | |
| Quoted variables like "" will no longer be dereferenced when the policy is | |
| set to NEW. Since the policy is not set the OLD behavior will be used. | |
| Call Stack (most recent call first): | |
| C:/Program Files/VTK/lib/cmake/vtk-7.0/VTKConfig.cmake:68 (include) | |
| CMakeLists.txt:362 (find_package) | |
| This warning is for project developers. Use -Wno-dev to suppress it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CMake Warning (dev) at C:/Program Files/VTK/lib/cmake/vtk-7.0/VTKTargets.cmake:28 (if): | |
| Policy CMP0054 is not set: Only interpret if() arguments as variables or | |
| keywords when unquoted. Run "cmake --help-policy CMP0054" for policy | |
| details. Use the cmake_policy command to set the policy and suppress this | |
| warning. | |
| Quoted variables like "" will no longer be dereferenced when the policy is | |
| set to NEW. Since the policy is not set the OLD behavior will be used. | |
| Call Stack (most recent call first): | |
| C:/Program Files/VTK/lib/cmake/vtk-7.0/VTKConfig.cmake:68 (include) | |
| CMakeLists.txt:362 (find_package) | |
| This warning is for project developers. Use -Wno-dev to suppress it. | |
| CMake Warning (dev) at C:/Program Files/VTK/lib/cmake/vtk-7.0/VTKTargets.cmake:33 (if): | |
| Policy CMP0054 is not set: Only interpret if() arguments as variables or | |
| keywords when unquoted. Run "cmake --help-policy CMP0054" for policy | |
| details. Use the cmake_policy command to set the policy and suppress this | |
| warning. | |
| Quoted variables like "" will no longer be dereferenced when the policy is | |
| set to NEW. Since the policy is not set the OLD behavior will be used. | |
| Call Stack (most recent call first): | |
| C:/Program Files/VTK/lib/cmake/vtk-7.0/VTKConfig.cmake:68 (include) | |
| CMakeLists.txt:362 (find_package) | |
| This warning is for project developers. Use -Wno-dev to suppress it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Error 8 error C2059: syntax error : '::' | |
| Error 7 error C2589: '(' : illegal token on right side of '::' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Windows.h> | |
| int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) | |
| { | |
| MessageBox(NULL, TEXT("Kitty on your lap"), | |
| TEXT("メッセージボックス"), | |
| MB_OK | MB_ICONINFORMATION); | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment